staging: wilc1000: off by one in get_handler_from_id()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Sep 2015 06:54:33 +0000 (09:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Sep 2015 13:34:44 +0000 (06:34 -0700)
commit6ae9ac0b61a752fc95298820debde88c10bdb53e
tree7dd13131080e4b0e737bb7a74be5838b5718581c
parent6de9a2e3d46969044e5fa3c4ca48362f1a3d9435
staging: wilc1000: off by one in get_handler_from_id()

The > should be >= here or we read beyond the end of the array.

Fixes: d42ab0838d04 ('staging: wilc1000: use id value as argument')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c