From: Adrien Schildknecht Date: Mon, 10 Aug 2015 22:25:53 +0000 (+0200) Subject: rt2x00: adjust EEPROM_SIZE for rt2500usb X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~124^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f10746fef3dfa8546808989f71c3543db832f374;p=pandora-kernel.git 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-diff-tree failed