mac80211: move interface shutdown out of wiphy lock
authorJohannes Berg <johannes.berg@intel.com>
Tue, 8 Jun 2021 09:32:30 +0000 (11:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Jun 2021 14:09:21 +0000 (16:09 +0200)
commitf5baf287f5da5641099ad5c809b3b4ebfc08506d
tree4888f3012a3995ec1efacab86644f284f611613d
parent65bec836da8394b1d56bdec2c478dcac21cf12a4
mac80211: move interface shutdown out of wiphy lock

When reconfiguration fails, we shut down everything, but we
cannot call cfg80211_shutdown_all_interfaces() with the wiphy
mutex held. Since cfg80211 now calls it on resume errors, we
only need to do likewise for where we call reconfig (whether
directly or indirectly), but not under the wiphy lock.

Cc: stable@vger.kernel.org
Fixes: 2fe8ef106238 ("cfg80211: change netdev registration/unregistration semantics")
Link: https://lore.kernel.org/r/20210608113226.78233c80f548.Iecc104aceb89f0568f50e9670a9cb191a1c8887b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs.c
net/mac80211/main.c
net/mac80211/util.c