diff options
| author | Felix Fietkau <nbd@nbd.name> | 2026-07-27 15:04:22 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2026-08-01 14:49:43 +0000 |
| commit | 15b960014f24dce5388d4a2e7274e6490cb3c421 (patch) | |
| tree | b976581cd443a64846dd5ef7df3f14b716047a6a /tools/perf/scripts/python | |
| parent | 3ae8ad277e2819a281b0e36b55633c8515c16ce7 (diff) | |
wifi: mt76: mt7915: fix ext PHY use-after-free on register error path
After mt7915_register_ext_phy() succeeded, a failure of the main PHY
mt7915_init_debugfs() or mt7915_coredump_register() unwound through
free_phy2, which called ieee80211_free_hw() on the ext PHY hw while it
was still registered with mac80211, since mt76_unregister_device() only
unregisters the main hw. Unregister the ext PHY (thermal + phy + hw)
first and skip the redundant free.
Fixes: 7b8e1ae886e4 ("mt76: mt7915: rework hardware/phy initialization")
Link: https://patch.msgid.link/20260727150434.1778520-3-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
