nl80211: add missing attribute validation for channel switch
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:10:58 +0000 (21:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 08:07:46 +0000 (09:07 +0100)
commit85a7e73aacdaaca222839aba845ea054fd6ff804
tree929150e956088b413a0119f452767f880817a464
parent0a626cd0438cd868e8f00e6c17225f41bc0c0485
nl80211: add missing attribute validation for channel switch

commit 5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6 upstream.

Add missing attribute validation for NL80211_ATTR_OPER_CLASS
to the netlink policy.

Fixes: 1057d35ede5d ("cfg80211: introduce TDLS channel switch commands")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20200303051058.4089398-4-kuba@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c