mac80211: fix read outside array bounds
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 7 Jul 2012 13:07:13 +0000 (15:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:52 +0000 (08:22 -0700)
commitb8e69df8d54f9458b38aee32a66ac82e3eaf2a6c
treedf775c114b4f13e2fb38007cf9da048d0e4e4dfe
parent77a797164fa64308ead7da0b1898895979f10b15
mac80211: fix read outside array bounds

commit 353d09c6ceedc1cb0c54fe5002c0ca80b6ee6e4f upstream.

ieee802_1d_to_ac is defined as a const int[8],
but the tid parameter has a range from 0 to 15.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/tx.c