Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f27ac40 authored by Eduardo Abinader's avatar Eduardo Abinader Committed by Kalle Valo
Browse files

ath9k: return false when reading wrong eeprom offset



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

Signed-off-by: default avatarEduardo Abinader <eduardo.abinader@riverbed.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 3fa35bac
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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];