1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 12:52:48 +02:00

mac80211: fix a crash in the netlink backport

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23409 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2010-10-12 12:04:52 +00:00
parent 2904117c6d
commit 6b8244f07e

View File

@ -0,0 +1,12 @@
--- a/compat/compat-2.6.37.c
+++ b/compat/compat-2.6.37.c
@@ -130,7 +130,8 @@ int compat_genl_register_family_with_ops
__copy(dumpit);
__copy(done);
#undef __copy
- ops[i].ops.doit = nl_doit_wrapper;
+ if (ops[i].doit)
+ ops[i].ops.doit = nl_doit_wrapper;
ret = genl_register_ops(&family->family, &ops[i].ops);
if (ret < 0)
goto error_ops;