]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: prohibit deactivating all links
authorJohannes Berg <johannes.berg@intel.com>
Mon, 30 Dec 2024 08:14:07 +0000 (09:14 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:34:05 +0000 (15:34 +0100)
commit7553477cbfd784b128297f9ed43751688415bbaa
treed49a39bb4a4e9dca6484b6796f72a76a0b5084b9
parent11cc69abb0b714a11d66421619637a9c98f221e3
wifi: mac80211: prohibit deactivating all links

In the internal API this calls this is a WARN_ON, but that
should remain since internally we want to know about bugs
that may cause this. Prevent deactivating all links in the
debugfs write directly.

Reported-by: syzbot+0c5d8e65f23569a8ffec@syzkaller.appspotmail.com
Fixes: 3d9011029227 ("wifi: mac80211: implement link switching")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20241230091408.505bd125c35a.Ic3c1f9572b980a952a444cad62b09b9c6721732b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs_netdev.c