]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: Fix bug in eeprom data length validation for AR9485
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Tue, 21 Dec 2010 09:42:43 +0000 (01:42 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 20:43:28 +0000 (15:43 -0500)
commit53169333ef74af9962835b8f90db42d16d343df0
treebc439416f6ff79eebef861c54ab0edcf3a1b2203
parent52a798cb69588243c034a7f5e9d9bc34c49f5954
ath9k_hw: Fix bug in eeprom data length validation for AR9485

The size of the eeprom data is 1088 bytes for AR9485. But
a sanity check is done against 4K which would result in a
'potential read past the end of the buffer' smatch complaint.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c