mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
8178f0d2ceb2b0323ef5622d95c52bb157119a1b
Some mt7603e chip has empty efuse data. In this case driver will crash due to dereferencing NULL pointer. The mt7603_eeprom_load will return success directly if the chip has no efuse data and dev->mt76.otp.data is left empty, i.e. NULL pointer. The mt7603_eeprom_init will then try to dereference dev->mt76.otp.data without checking its value. This patch adds a check around these codes to prevent kernel panic. Signed-off-by: Weijie Gao <[email protected]>
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
105 MiB
Languages
C
99.7%
Perl
0.2%
Makefile
0.1%