aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-12 12:04:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-12 12:04:52 +0000
commit1897dd2c6d6f79c6c52bda33edfdc872301ee5f9 (patch)
treef6d88f5cdbde46aad6d7f03c1b33cc3747ca5365
parent04c4b01fb4540672f524814bf13328501cf289df (diff)
downloadupstream-1897dd2c6d6f79c6c52bda33edfdc872301ee5f9.tar.gz
upstream-1897dd2c6d6f79c6c52bda33edfdc872301ee5f9.tar.bz2
upstream-1897dd2c6d6f79c6c52bda33edfdc872301ee5f9.zip
mac80211: fix a crash in the netlink backport
SVN-Revision: 23409
-rw-r--r--package/mac80211/patches/020-nl80211_fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/mac80211/patches/020-nl80211_fix.patch b/package/mac80211/patches/020-nl80211_fix.patch
new file mode 100644
index 0000000000..d7fb4df3e2
--- /dev/null
+++ b/package/mac80211/patches/020-nl80211_fix.patch
@@ -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;