The important commit here fixes the locking in rtw_os_ndev_register() and rtw_os_ndev_unregister(); the other commit is just removing an unnecessary check since we're guaranteed to already hold rtnl_lock.
For registration, I have seen cases where register_netdevice() is being called without holding rtnl_lock because it is being held by another task and this breaks all the locking requirements.
The important commit here fixes the locking in
rtw_os_ndev_register()
andrtw_os_ndev_unregister()
; the other commit is just removing an unnecessary check since we're guaranteed to already holdrtnl_lock
.For registration, I have seen cases where
register_netdevice()
is being called without holdingrtnl_lock
because it is being held by another task and this breaks all the locking requirements.