1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-19 00:19:42 +02:00
openwrt-xburst/package/mac80211/patches/300-nl80211_dump_crash_fix.patch
nbd fe2b4c1db4 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
2010-10-31 14:32:15 +00:00

14 lines
308 B
Diff

--- 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;
}