source: branches/backfire/package/mac80211/patches/300-nl80211_dump_crash_fix.patch @ 23742

Last change on this file since 23742 was 23742, checked in by nbd, 6 years ago

mac80211: backport the nl80211 crash fix from r23741

File size: 308 bytes
  • net/wireless/nl80211.c

    a b static int nl80211_prepare_netdev_dump(s 
    224224        } 
    225225 
    226226        *rdev = cfg80211_get_dev_from_ifindex(sock_net(skb->sk), ifidx); 
    227         if (IS_ERR(dev)) { 
    228                 err = PTR_ERR(dev); 
     227        if (IS_ERR(*rdev)) { 
     228                err = PTR_ERR(*rdev); 
    229229                goto out_rtnl; 
    230230        } 
    231231 
Note: See TracBrowser for help on using the repository browser.