diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 11:36:54 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-22 18:12:07 -0700 |
| commit | d9750b3c4c277b061df694f563a58c6df7b84912 (patch) | |
| tree | 85d098e85b38c83c9f4e4070885b84e8b4abcc29 /include/linux/debugobjects.h | |
| parent | 6598456d72e48d779445bfec8f72114747f8b8d7 (diff) | |
net: stmmac: dwmac-sun8i: Fix EPHY clock leak in get_ephy_nodes()
get_ephy_nodes() stores the clock returned by of_clk_get() directly in
gmac->ephy_clk before the reset control is obtained. When the reset
lookup fails, the loop continues or returns without releasing that
clock, and sun8i_dwmac_probe() then jumps to dwmac_remove, which does
not call clk_put(). Keep the clock in a local variable and release it
on the error paths.
Cc: stable+noautosel@kernel.org # untested fix to unlikely driver error path
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260917113654.2149268-1-vulab@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
