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>
#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