summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-11-22 20:21:42 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2013-11-23 13:25:19 +0100
commit5ef618b493755e07fd067e07304fb03475b0c2bd (patch)
tree56672fb6ba7bbb7987b5417ca859eb7b393fd3cd
parent92ad5c2ee4e441b0b366698d77facbf0258e59ad (diff)
backports: fix genetlink backport
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. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/compat/backport-3.13.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backport/compat/backport-3.13.c b/backport/compat/backport-3.13.c
index 77eefef9..d5b70293 100644
--- a/backport/compat/backport-3.13.c
+++ b/backport/compat/backport-3.13.c
@@ -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