From: Johannes Berg Date: Fri, 22 Nov 2013 19:21:42 +0000 (+0100) Subject: backports: fix genetlink backport X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5ef618b493755e07fd067e07304fb03475b0c2bd;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Hauke Mehrtens --- diff --git a/backport/compat/backport-3.13.c b/backport/compat/backport-3.13.c index 77eefef910f2..d5b702937090 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