mac80211: remove warning in ieee80211_get_sband()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 17 May 2021 14:47:17 +0000 (16:47 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:47:19 +0000 (08:47 -0400)
commit8cfe765afd5a8d127770780f45fd971a28897484
tree8c318e3e71cb617a6f669dedad405abefcc0495b
parentb671b98169821836f12d646c85aafd6968a331a3
mac80211: remove warning in ieee80211_get_sband()

[ Upstream commit 0ee4d55534f82a0624701d0bb9fc2304d4529086 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/ieee80211_i.h