ath9k: return false when reading wrong eeprom offset
PATCH 1/1 ath9k: return false when reading wrong eeprom offset
Just setting the proper return for reading beyond the eeprom data.
Signed-off-by Eduardo Abinader <[email protected]>
--- drivers/net/wireless/ath/ath9k/pci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/wireless/ath/ath9k/pci.c +2 -0
@@ -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];
Signature · 1 line
2.5.0
PATCH 1/1 ath9k: return false when reading wrong eeprom offset
Hi All,
Quoted 3 lines · Eduardo Abinader
Just setting the proper return for reading beyond the eeprom data.
Signed-off-by Eduardo Abinader <[email protected]>
This makes sense to me.
Reviewed-by Julian Calaby <[email protected]>
Thanks,
Signature · 4 lines
Julian Calaby Email: julian.calaby at gmail.com Profile: http://www.google.com/profiles/julian.calaby/
Quoted 4 lines · Eduardo Abinader
Just setting the proper return for reading beyond the eeprom data.
Signed-off-by Eduardo Abinader <[email protected]>Reviewed-by Julian Calaby <[email protected]>
Thanks, 1 patch applied to ath-next branch of ath.git:
0f27ac40fb64 ath9k: return false when reading wrong eeprom offset
Signature · 2 lines
Sent by pwcli https://patchwork.kernel.org/patch/9181371/