]> git.baikalelectronics.ru Git - kernel.git/commit
virt_wifi: fix deadlock on RTNL
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Jan 2021 20:59:42 +0000 (21:59 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 Jan 2021 21:05:05 +0000 (22:05 +0100)
commitb144b6a9f459caacf6bcfa5e52d364825bbcc783
tree5cdaa487ea01f954488a630e1eab93481df677a6
parent03d71e9f65642ae5c9680aed8d837fd75fa46216
virt_wifi: fix deadlock on RTNL

Fix a regression where everything in virt_wifi would just hang. This
happened due to overlapping changes between commit 03d71e9f6564
("cfg80211: avoid holding the RTNL when calling the driver") which
had originally needed to change the locking, but then I introduced
commit 354ea93ef91f ("cfg80211: change netdev registration/unregistration
semantics") instead. virt_wifi somehow fell through the cracks when
I undid all the previous locking changes. Fix it now.

Fixes: 03d71e9f6564 ("cfg80211: avoid holding the RTNL when calling the driver")
Reported-by: syzbot+3d2d5e6cc3fb15c6a0fd@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20210127215941.2d6a97b09784.I4f1fac32f67045171be50931f44d77e150911bee@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virt_wifi.c