aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/rc.c
diff options
context:
space:
mode:
authorroel <roel.kluin@gmail.com>2011-04-10 21:09:50 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-04-12 16:59:30 -0400
commit0f8e94d2ae4f7966d09c8105ccabb3b3d8238a4d (patch)
tree3a3509a24f8fff5bf33f23b13f0b2db5f3bceb1b /drivers/net/wireless/ath/ath9k/rc.c
parentc266c71a9cbdccb40fb6f4c05d4ddaa6226e5eba (diff)
downloadkernel_samsung_tuna-0f8e94d2ae4f7966d09c8105ccabb3b3d8238a4d.zip
kernel_samsung_tuna-0f8e94d2ae4f7966d09c8105ccabb3b3d8238a4d.tar.gz
kernel_samsung_tuna-0f8e94d2ae4f7966d09c8105ccabb3b3d8238a4d.tar.bz2
ath9k_hw: index out of bounds
Check whether index is within bounds before testing the element Both spurChans arrays in modalHeader5G and modalHeader2G have 5 elements, AR_EEPROM_MODAL_SPURS is defined 5. So unless a break occurs, in the last iteration (i=5) we tried to access spurChansPtr[5] before testing whether i was within bounds. Fix this. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
0 files changed, 0 insertions, 0 deletions