orinoco: Fix walking past the end of the buffer
authorDavid Kilroy <kilroyd@googlemail.com>
Sat, 21 Aug 2010 11:08:15 +0000 (12:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:33:17 +0000 (14:33 -0400)
commit9736ebfe39687f2edde9e97fc188f013a31048f6
tree3893f7aa342d82c69307a9a9972908d77b327a2b
parent0fb9a9ec27718fbf7fa3153bc94becefb716ceeb
orinoco: Fix walking past the end of the buffer

Fix walking past the end of the bitrate_table array
in the case when the loop counter == BITRATE_TABLE_SIZE.

Reported by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/hw.c
drivers/net/wireless/orinoco/wext.c