Search Linux Wireless

rtl8723bs: rtnl_is_locked() misuse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm reporting you about misuse of rtnl_is_locked() in rtw_change_ifname() function.
Note, that rtnl_is_locked() *does not mean* rtnl is locked on the *current cpu*.
This primitive returns true in case of rtnl is locked somewhere in the system.
So, it can't be used in the below code:

if (!rtnl_is_locked())
                unregister_netdev(cur_pnetdev);
        else
                unregister_netdevice(cur_pnetdev);

Kirill



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux