Re: [PATCH] rt2x00: adjust EEPROM_SIZE for rt2500usb

From: Stanislaw Gruszka
Date: Wed Aug 12 2015 - 05:01:21 EST

On Tue, Aug 11, 2015 at 12:25:53AM +0200, Adrien Schildknecht wrote:
> rt2500usb_validate_eeprom() read data up to 0x6e (EEPROM_CALIBRATE_OFFSET)
> but only 0x6a bytes has been allocated and read from the eeprom.
> This lead to out-of-bound accesses and invalid values for
> Change the EEPROM_SIZE to 0x6e in order to retrieve all the fields.
> Tested with a rt2570 device.
> Signed-off-by: Adrien Schildknecht <adrien+dev@xxxxxxxxxxx>

Acked-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at