]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a39dcd892d65f135ca50222a018afde9713c3d9
tree75a2d5946ca8dac7115b3182f858b7866b591eeb
parent6af25e331561b31701551c119494b7ed13036d1b
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