[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150818060523.707B1140394@smtp.codeaurora.org>
Date: Tue, 18 Aug 2015 06:05:23 +0000 (UTC)
From: Kalle Valo <kvalo@...eaurora.org>
To: Adrien Schildknecht <adrien+dev@...ischi.me>
Cc: sgruszka@...hat.com, helmut.schaa@...glemail.com,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Adrien Schildknecht <adrien+dev@...ischi.me>
Subject: Re: 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 <adrien+dev@...ischi.me>
> Acked-by: Stanislaw Gruszka <sgruszka@...hat.com>
Thanks, applied to wireless-drivers-next.git.
Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists