wifi: cfg80211: hold wiphy lock in auto-disconnect
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:49:20 +0000 (14:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:00:39 +0000 (22:00 +0200)
commitfb195ff4183a415f58fcfb2f2ceadbe040df6acc
tree711b44e27a0d3cb97d7e936cc7c0e6490ff2a1ac
parent6b3223449c959a8be94a1f042288059e40fcccb0
wifi: cfg80211: hold wiphy lock in auto-disconnect

[ Upstream commit e9da6df7492a981b071bafd169fb4c35b45f5ebf ]

Most code paths in cfg80211 already hold the wiphy lock,
mostly by virtue of being called from nl80211, so make
the auto-disconnect worker also hold it, aligning the
locking promises between different parts of cfg80211.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Stable-dep-of: 37c20b2effe9 ("wifi: cfg80211: fix cqm_config access race")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/core.c
net/wireless/sme.c