ar9170: fix read & write outside array bounds
authorDan Carpenter <error27@gmail.com>
Sun, 9 Aug 2009 12:24:09 +0000 (14:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Aug 2009 20:41:01 +0000 (16:41 -0400)
commite9d126cdfa60b575f1b5b02024c4faee27dccf07
treea503bcc77224fd655464de9741ce816ec0e2e341
parent363ec5614f86110c6a6bdd72ac2147ebafd3ff5e
ar9170: fix read & write outside array bounds

queue == __AR9170_NUM_TXQ would cause a bug on the next line.

found by Smatch ( http://repo.or.cz/w/smatch.git ).

Cc: stable@kernel.org
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/main.c