diff options
author | Eduardo Abinader <eduardo.abinader@riverbed.com> | 2016-06-29 19:29:29 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-06-30 14:10:12 +0300 |
commit | 0f27ac40fb64dc0ac8254913b414dde3386196f4 (patch) | |
tree | 2ff7299568e242a92557ad57584c1869177fe08c /drivers/net/wireless/ath/ath9k/pci.c | |
parent | 3fa35bacc16a01b4acfa4a2a34947f84b1237056 (diff) | |
download | linux-0f27ac40fb64dc0ac8254913b414dde3386196f4.tar.bz2 |
ath9k: return false when reading wrong eeprom offset
Just setting the proper return for reading beyond the eeprom data.
Signed-off-by: Eduardo Abinader <eduardo.abinader@riverbed.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index 7cdaf40c3057..aa04b13bc5f2 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c @@ -794,6 +794,8 @@ static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data) ath_err(common, "%s: eeprom read failed, offset %08x is out of range\n", __func__, off); + + return false; } *data = pdata->eeprom_data[off]; |