[PATCH] backports: fix genetlink backport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

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@xxxxxxxxx>
---
 backport/compat/backport-3.13.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backport/compat/backport-3.13.c b/backport/compat/backport-3.13.c
index 77eefef..d5b7029 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
-- 
1.8.4.rc3

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux