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>
Wed, 18 Mar 2020 06:14:23 +0000 (07:14 +0100)
commit99c731e17d5e4f5143a845b9c7ad42d708e6085a
tree4668b24cb2ee2cf86a80633ee2dda01dd42ff029
parent4fe88c83221d5350b997e719e61afd682eddff89
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