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 09:54:19 +0000 (10:54 +0100)
commit66be2d1ab3c6ad4c98014fbf508882b30a50a78f
tree0eef61694d00fb52f48360ce339a7ded6872c22d
parent214022646ecf8750cfbc97366832d9aafae1b555
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