From: roel Date: Sun, 10 Apr 2011 19:09:50 +0000 (+0200) Subject: ath9k_hw: index out of bounds X-Git-Tag: v3.0-rc1~377^2~256^2^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f8e94d2ae4f7966d09c8105ccabb3b3d8238a4d;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed