]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4f66dfd1088da4e34d802b73dd9ced28db2cf9a
tree4888f3012a3995ec1efacab86644f284f611613d
parentf3c93b1a5d7c3b7558e6c455af7b9549e4818dbb
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: 50d641527c8b ("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