From f10746fef3dfa8546808989f71c3543db832f374 Mon Sep 17 00:00:00 2001 From: Adrien Schildknecht Date: Tue, 11 Aug 2015 00:25:53 +0200 Subject: [PATCH] rt2x00: adjust EEPROM_SIZE for rt2500usb 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 EEPROM_BBPTUNE_R17 and EEPROM_CALIBRATE_OFFSET. Change the EEPROM_SIZE to 0x6e in order to retrieve all the fields. Tested with a rt2570 device. Signed-off-by: Adrien Schildknecht Acked-by: Stanislaw Gruszka Signed-off-by: Kalle Valo --- Reading git-format-patch failed