Skip to contentSkip to conversation

ath9k: return false when reading wrong eeprom offset

PATCH New Eduardo Abinader 2 participants 2 messages Jun 15, 2016 – Jun 16, 2016 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: return false when reading wrong eeprom offset

Just setting the proper return for reading beyond the eeprom data.

---
  drivers/net/wireless/ath/ath9k/pci.c | 2 ++
  1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/drivers/net/wireless/ath/ath9k/pci.c
index 7cdaf40..aa04b13 100644

drivers/net/wireless/ath/ath9k/pci.c +0 -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
#1 lore raw

PATCH 1/1 ath9k: return false when reading wrong eeprom offset

drivers/net/wireless/ath/ath9k/pci.c

Quoted 11 lines · Eduardo Abinader

Just setting the proper return for reading beyond the eeprom data.

---
 drivers/net/wireless/ath/ath9k/pci.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/ath/ath9k/pci.c +0 -0
index 7cdaf40..aa04b13 100644

The patch is corrupted, most likely due to an extra newline. Please resend.

Applying: ath9k: return false when reading wrong eeprom offset
fatal: corrupt patch at line 14
Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge.
Patch failed at 0001 ath9k: return false when reading wrong eeprom offset

Signature · 1 line
Kalle Valo