Skip to contentSkip to conversation

backports: fix genetlink backport

PATCH In review Johannes Berg 2 participants 2 messages Nov 22, 2013 – Nov 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: fix genetlink backport

From: Johannes Berg <[email protected]>

On kernels that already have pre_doit/post_doit, we don't fake them by re-assigning all ops and their doit, but then we clearly need to copy the pointers. Fix that oversight.

---
 backport/compat/backport-3.13.c | 4 ++++
 1 file changed, 4 insertions(+)
backport/compat/backport-3.13.c +4 -0
index 77eefef..d5b7029 100644
@@ -159,6 +159,10 @@ int __backport_genl_register_family(struct genl_family *family)
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
 	__copy(netnsok);
 #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)
+	__copy(pre_doit);
+	__copy(post_doit);
+#endif
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
 	__copy(parallel_ops);
 #endif
Signature · 1 line
1.8.4.rc3
#1 lore raw
Quoted 7 lines · Johannes Berg

From: Johannes Berg <[email protected]>

On kernels that already have pre_doit/post_doit, we don't fake them by re-assigning all ops and their doit, but then we clearly need to copy the pointers. Fix that oversight.

Thank you for the patch, it was applied.

Now backports works again for me.

Hauke