[PATCH] Array overrun in drivers/net/wireless/wavelan.c
authorEric Sesterhenn <snakebyte@gmx.de>
Wed, 21 Jun 2006 14:40:24 +0000 (16:40 +0200)
committerJeff Garzik <jeff@garzik.org>
Fri, 23 Jun 2006 03:24:18 +0000 (23:24 -0400)
commita192491ad58098f2c57d2d1efe721ea0634dc0aa
tree7a8ef6923e28dcec98f0a6d5bd2c3246cd01eacf
parentda4f5ccf6040b998b64c60db8fa5f4ee03fdaf95
[PATCH] Array overrun in drivers/net/wireless/wavelan.c

hi,

this is another array overrun spotted by coverity (#id 507)
we should check the index against array size before using it.
Not sure why the driver doesnt use ARRAY_SIZE instead of its
own macro.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/wireless/wavelan.c