diff options
author | Adrien Schildknecht <adrien+dev@schischi.me> | 2015-08-11 00:25:53 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-08-18 09:04:45 +0300 |
commit | f10746fef3dfa8546808989f71c3543db832f374 (patch) | |
tree | 3f69229be0f8e78cc603c1ec4f8cd6125143663c /drivers/net/wireless/rtlwifi/rtl8192c | |
parent | bafc6e4cd897ef14015d8d32a04ee9bfa8d91370 (diff) | |
download | talos-op-linux-f10746fef3dfa8546808989f71c3543db832f374.tar.gz talos-op-linux-f10746fef3dfa8546808989f71c3543db832f374.zip |
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@schischi.me>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192c')
0 files changed, 0 insertions, 0 deletions