mac80211: fix a crash in the netlink backport
SVN-Revision: 23409
This commit is contained in:
parent
04c4b01fb4
commit
1897dd2c6d
1 changed files with 12 additions and 0 deletions
12
package/mac80211/patches/020-nl80211_fix.patch
Normal file
12
package/mac80211/patches/020-nl80211_fix.patch
Normal 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;
|
Loading…
Reference in a new issue