Files
mt76/mt7603
Weijie GaoandFelix Fietkau 8178f0d2ce mt7603: apply efuse data only when it exists
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]>
2018-12-11 14:11:39 +01:00
..
2018-11-28 22:29:23 +01:00
2018-11-28 21:11:05 +01:00
2018-11-06 15:41:37 +01:00
2018-12-09 17:18:12 +01:00
2018-11-06 15:41:37 +01:00
2018-09-28 18:02:01 +02:00
2018-11-06 13:53:26 +01:00
2018-11-06 15:41:37 +01:00
2018-12-09 17:18:12 +01:00
2018-11-06 15:41:37 +01:00