Files
amazingfate-rtl8723ds/os_dep/linux
John Keeping 1eca486544 rtl8723ds: fix locking for (un)register
rtnl_is_locked() checks whether the lock is currently held by any task,
not specifically by _this_ task so it is wrong to use it in the
(un)register path.

In both of these cases, examining the call stack shows that there is no
way for rtnl_lock to be taken by the task running these functions, so
remove the checks.

Further, (un)register_netdev() have existed since the beginning of Git
history so there's no reason for a version check here and we can always
call the function that takes the lock itself and should never call the
version which expects rtnl_lock to be held.
2022-11-29 18:41:01 +00:00
..
2021-07-24 18:40:05 +08:00
2022-02-05 11:47:13 -06:00
2017-04-25 10:13:42 -05:00
2017-04-25 10:13:42 -05:00
2021-07-24 18:40:13 +08:00