提交 0f27ac40 编写于 作者: E Eduardo Abinader 提交者: Kalle Valo

ath9k: return false when reading wrong eeprom offset

Just setting the proper return for reading beyond the eeprom data.
Signed-off-by: NEduardo Abinader <eduardo.abinader@riverbed.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 3fa35bac
...@@ -794,6 +794,8 @@ static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data) ...@@ -794,6 +794,8 @@ static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data)
ath_err(common, ath_err(common,
"%s: eeprom read failed, offset %08x is out of range\n", "%s: eeprom read failed, offset %08x is out of range\n",
__func__, off); __func__, off);
return false;
} }
*data = pdata->eeprom_data[off]; *data = pdata->eeprom_data[off];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册