diff options
| author | Nicolai Buchwitz <nb@tipi-net.de> | 2026-09-07 23:08:55 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-08 17:52:05 -0700 |
| commit | 7d059f390750152b9bd69df934198651b94fc26d (patch) | |
| tree | d42ee47b8d858569d3241764e541585365731d3f /tools/perf/scripts/python/task-analyzer.py | |
| parent | 7a49e6b16f36b8e085521699adbca3e321b6dd0c (diff) | |
net: macb: destroy the phylink instance on the probe error path
macb_mii_init() creates a phylink instance on both of its success paths,
but the probe unwind frees the netdev without destroying it, so a failing
macb_alloc_tieoff() or register_netdev() leaks the instance.
Destroy it at err_out_unregister_mdio, which is only reachable once
macb_mii_init() has succeeded, so bp->phylink is valid there.
Fixes: 7897b071ac3b ("net: macb: convert to phylink")
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260907210856.1673589-2-nb@tipi-net.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
