]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb9c3d304a872fcdb44991da91e89d1b6e74911d
tree74e17b7c611c42aef982ba96187d893e5de938a3
parentb6059a8bcc48e4dbd0d8ad95953ce1ff8e421c8f
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