]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: require at least one channel
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Aug 2018 16:17:03 +0000 (18:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Aug 2018 16:17:03 +0000 (18:17 +0200)
commita94928661237d275716aaf27c922f6dc866dcf86
tree6deb3b1e8572645c50e95c925f70d57eaeeabf76
parenta5f29d08a87ae9b7725abeb97f411ee719189065
mac80211_hwsim: require at least one channel

Syzbot continues to try to create mac80211_hwsim radios, and
manages to pass parameters that are later checked with WARN_ON
in cfg80211 - catch another one in hwsim directly.

Reported-by: syzbot+2a12f11c306afe871c1f@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c