[PATCH] mt76: mt7921: fix kernel panic by accessing unallocated eeprom.data

Alexandre Mergnat amergnat at baylibre.com
Wed Apr 12 01:09:54 PDT 2023


On 10/04/2023 22:35, sean.wang at mediatek.com wrote:
> From: Sean Wang<sean.wang at mediatek.com>
> 
> The MT7921 driver no longer uses eeprom.data, but the relevant code has not
> been removed completely since
> commit 16d98b548365 ("mt76: mt7921: rely on mcu_get_nic_capability").
> This could result in potential invalid memory access.
> 
> To fix the kernel panic issue in mt7921, it is necessary to avoid accessing
> unallocated eeprom.data which can lead to invalid memory access.

Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>

-- 
Regards,
Alexandre




More information about the Linux-mediatek mailing list