cfg80211: shut down interfaces on failed resume
authorJohannes Berg <johannes.berg@intel.com>
Tue, 8 Jun 2021 09:32:29 +0000 (11:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Jun 2021 14:09:20 +0000 (16:09 +0200)
commit65bec836da8394b1d56bdec2c478dcac21cf12a4
tree7175cbbb3ee70a08c331def51a35b5cb001637cd
parent43076c1e074359f11c85d7d1b85ede1bbb8ee6b9
cfg80211: shut down interfaces on failed resume

If resume fails, we should shut down all interfaces as the
hardware is probably dead. This was/is already done now in
mac80211, but we need to change that due to locking issues,
so move it here and do it without the wiphy lock held.

Cc: stable@vger.kernel.org
Fixes: 2fe8ef106238 ("cfg80211: change netdev registration/unregistration semantics")
Link: https://lore.kernel.org/r/20210608113226.d564ca69de7c.I2e3c3e5d410b72a4f63bade4fb075df041b3d92f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/sysfs.c