cfg80211: prevent speculation on cfg80211_classify8021d() return
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Feb 2019 11:17:14 +0000 (13:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2019 14:50:56 +0000 (15:50 +0100)
commit1fc9b7253382ce1a83d9a3e63e88d656eb63f263
tree75a2d5946ca8dac7115b3182f858b7866b591eeb
parentff1bab1ba19165d4402447dd39abae9e21880ebf
cfg80211: prevent speculation on cfg80211_classify8021d() return

It's possible that the caller of cfg80211_classify8021d() uses the
value to index an array, like mac80211 in ieee80211_downgrade_queue().
Prevent speculation on the return value.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c