libertas: Read outside array bounds
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 28 Jul 2009 07:59:47 +0000 (09:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Jul 2009 18:52:01 +0000 (14:52 -0400)
commit430453fc2a5f3f2c1d98ebc3c3d4c54f3060e3c3
tree74e17b7c611c42aef982ba96187d893e5de938a3
parent78f1a8b758d57c2d2c9f3db7199cd30803854c82
libertas: Read outside array bounds

reads bss->rates[j] before checking bounds of index, and should use
ARRAY_SIZE to determine the size of the array.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/scan.c