mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 21:10:17 +02:00
14 lines
308 B
Diff
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;
|
||
|
}
|
||
|
|