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

From: patchwork-bot+netdevbpf

Date: Tue Sep 22 2026 - 21:22:24 EST


Hello:

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

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