diff options
| author | Hongyan Xu <getshell@seu.edu.cn> | 2026-08-01 22:06:43 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-05 17:50:03 -0700 |
| commit | 1aae367b1646fb68a39a4c5aa8ac2e1f1512e0af (patch) | |
| tree | 62bc9efe67704b45765ddf275b14e28aa0a156d0 /tools/perf/scripts/python/bin/task-analyzer-record | |
| parent | 4cb233fc682f54a5f716b7acf84be27d0a1270be (diff) | |
net: phy: nxp-tja11xx: cancel registration work on remove
tja1102_p0_probe() schedules work to register the second port. That work
uses the Port 0 private data and phydev. The private data is
devm-allocated, but the driver does not wait for the pending work on
remove.
Store the Port 0 private data in phydev->priv and add a remove callback.
The callback cancels the registration work before devres teardown frees
the state.
This issue was found by a static analysis tool.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Hongyan Xu <getshell@seu.edu.cn>
Link: https://patch.msgid.link/20260801140643.1871-1-getshell@seu.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions
