[PATCH] net: stmmac: dwmac-sun8i: Fix EPHY clock leak in get_ephy_nodes()

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Tue Sep 22 18:20:20 PDT 2026


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba at kernel.org>:

On Thu, 17 Sep 2026 11:36:54 +0000 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - net: stmmac: dwmac-sun8i: Fix EPHY clock leak in get_ephy_nodes()
    https://git.kernel.org/netdev/net-next/c/d9750b3c4c27

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-arm-kernel mailing list