]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: remove warning in ieee80211_get_sband()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 17 May 2021 14:47:17 +0000 (16:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 31 May 2021 19:27:05 +0000 (21:27 +0200)
commit63af0a739165c9cfd0c2d5ab67f1e598af777a73
tree4e85304c298ab91e37322bea7145795be87265ee
parent9b6f8427f0f3458f089c0fbfc55ff585fc4e2288
mac80211: remove warning in ieee80211_get_sband()

Syzbot reports that it's possible to hit this from userspace,
by trying to add a station before any other connection setup
has been done. Instead of trying to catch this in some other
way simply remove the warning, that will appropriately reject
the call from userspace.

Reported-by: syzbot+7716dbc401d9a437890d@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20210517164715.f537da276d17.Id05f40ec8761d6a8cc2df87f1aa09c651988a586@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h