mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 13:11:45 +00:00
mac80211: fix read outside array bounds
ieee802_1d_to_ac is defined as a const int[8], but the tid parameter has a range from 0 to 15. Cc: stable@vger.kernel.org Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f8bf65bf36
commit
353d09c6ce
@ -2733,7 +2733,7 @@ EXPORT_SYMBOL(ieee80211_get_buffered_bc);
|
||||
void ieee80211_tx_skb_tid(struct ieee80211_sub_if_data *sdata,
|
||||
struct sk_buff *skb, int tid)
|
||||
{
|
||||
int ac = ieee802_1d_to_ac[tid];
|
||||
int ac = ieee802_1d_to_ac[tid & 7];
|
||||
|
||||
skb_set_mac_header(skb, 0);
|
||||
skb_set_network_header(skb, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user