]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix VHT MCS mask array overrun
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Aug 2015 12:07:13 +0000 (14:07 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Sep 2015 13:19:48 +0000 (15:19 +0200)
commit195c9d7e02b75756537cb7be6cb09bfc0abf9fe8
tree1d3d5cfe6ec5cbc2211ca02c835b92ef45ba293c
parent6d464e90e5cc34c0708c2af75f0b2c700374b4fc
mac80211: fix VHT MCS mask array overrun

The HT MCS mask has 9 bytes, the VHT one only has 8 streams.
Split the loops to handle this correctly.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c