wifi: cfg80211: hold wiphy lock in pmsr work
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:49:21 +0000 (14:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 7 Jun 2023 17:53:07 +0000 (19:53 +0200)
commit0dcb84ede5b0a99fc125df2f82ca1f539d41446d
tree2814b4eecc7feb2b8fd6dce95fb203bc121218c9
parente9da6df7492a981b071bafd169fb4c35b45f5ebf
wifi: cfg80211: hold wiphy lock in pmsr work

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

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/pmsr.c