]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: fix locking in ieee80211_restart_work()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 Aug 2021 10:12:22 +0000 (12:12 +0200)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:35:08 +0000 (08:35 -0400)
commit39af3583c8fb28cf65a6272b9e85a0400ea8b99a
treed9b03de28caaed16bf44b8c521c4ddba5de9075e
parent0de9c4de5ca1e337f70a651be6d90fe16ae086e5
mac80211: fix locking in ieee80211_restart_work()

[ Upstream commit 276e189f8e4e3cce1634d6bac4ed0d9ca242441b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/main.c