ath9k: index out of bounds

Check whether index is within bounds before testing the element

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
roel 2011-04-10 21:09:55 +02:00 • committed by John W. Linville
commit f0bce44f5f