summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorLu Huang <huanglu@kylinos.cn>2026-09-30 16:54:35 +0800
committerFelix Fietkau <nbd@nbd.name>2026-10-06 11:50:52 +0200
commit52f6a065e0810c739a5dabd33a58047f08100f50 (patch)
tree57c7fc05432e6e8b94b1afe94321d061e55a693f /tools/perf/scripts/python/task-analyzer.py
parentaf97bf5a7e72da9026de184676df8e2fa57e1058 (diff)
downloadlinux-52f6a065e0810c739a5dabd33a58047f08100f50.tar.gz
linux-52f6a065e0810c739a5dabd33a58047f08100f50.zip
wifi: mt76: mt7996: fix uninitialized buf read in mt7996_variant_fem_init()
When the eFuse block covering MT7976C_EFUSE_OFFSET is invalid, mt7996_mcu_get_eeprom() returns -EINVAL without writing buf, but mt7996_variant_fem_init() tolerates -EINVAL and keeps running, so buf[idx] == 0xc reads uninitialized stack memory. A stale 0x0c byte misclassifies a 0x7976 aDie as 7976C, selects MT7996_FEM_INT and the wrong default EEPROM, overriding valid calibration data. Only consult the eFuse byte when the read succeeded; with an invalid eFuse, fall back to the three explicit aDie version checks. Fixes: e8cb33ad546a ("wifi: mt76: mt7996: add support for more variants") Cc: stable@vger.kernel.org Signed-off-by: Lu Huang <huanglu@kylinos.cn> Link: https://patch.msgid.link/20260930085435.1424493-1-huanglu@kylinos.cn Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions