]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c376a2b1473474565e4146020a9efae8377f591
tree7175cbbb3ee70a08c331def51a35b5cb001637cd
parentc88ad25dfc1b8f79d63d581d8655659f61bf05bc
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: 354ea93ef91f ("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