]> 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)
commit582368b6e67470c6535c6479a3a52f8848d43b80
tree4888f3012a3995ec1efacab86644f284f611613d
parent4c376a2b1473474565e4146020a9efae8377f591
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: 354ea93ef91f ("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