mac80211: fix locking in ieee80211_restart_work()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 Aug 2021 10:12:22 +0000 (12:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Aug 2021 13:51:43 +0000 (06:51 -0700)
commit276e189f8e4e3cce1634d6bac4ed0d9ca242441b
tree8bcf78666e09133084d6c192e04db75891ff41fc
parentdbcf24d153884439dad30484a0e3f02350692e4c
mac80211: fix locking in ieee80211_restart_work()

Ilan's change to move locking around accidentally lost the
wiphy_lock() during some porting, add it back.

Fixes: 45daaa131841 ("mac80211: Properly WARN on HW scan before restart")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20210817121210.47bdb177064f.Ib1ef79440cd27f318c028ddfc0c642406917f512@changeid
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mac80211/main.c