diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-31 14:32:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-31 14:32:15 +0000 |
commit | 30453b2e5e03d3b81845473d6c7716ff3092100a (patch) | |
tree | a5fd08dfcfabe3f5b28e4299e1a27e4e09510642 /package/mac80211 | |
parent | 83038bca8b282e11eda58cf685e186be21cc6bc1 (diff) | |
download | upstream-30453b2e5e03d3b81845473d6c7716ff3092100a.tar.gz upstream-30453b2e5e03d3b81845473d6c7716ff3092100a.tar.bz2 upstream-30453b2e5e03d3b81845473d6c7716ff3092100a.zip |
nl80211: fix a station dump crash triggered by sending an invalid ifindex
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23741 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/patches/300-nl80211_dump_crash_fix.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-nl80211_dump_crash_fix.patch b/package/mac80211/patches/300-nl80211_dump_crash_fix.patch new file mode 100644 index 0000000000..3c6385f890 --- /dev/null +++ b/package/mac80211/patches/300-nl80211_dump_crash_fix.patch @@ -0,0 +1,13 @@ +--- a/net/wireless/nl80211.c ++++ b/net/wireless/nl80211.c +@@ -224,8 +224,8 @@ static int nl80211_prepare_netdev_dump(s + } + + *rdev = cfg80211_get_dev_from_ifindex(sock_net(skb->sk), ifidx); +- if (IS_ERR(dev)) { +- err = PTR_ERR(dev); ++ if (IS_ERR(*rdev)) { ++ err = PTR_ERR(*rdev); + goto out_rtnl; + } + |