Re: [PATCH net] net: pcs: xpcs: fix clock reference leak on xpcs_init_clks failure
From: patchwork-bot+netdevbpf
Date: Tue Sep 22 2026 - 09:51:52 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Sun, 20 Sep 2026 01:20:21 +0800 you wrote:
> xpcs_init_clks() takes references with clk_bulk_get_optional() and then
> enables them with clk_bulk_prepare_enable(). If the enable step fails,
> the function returns without dropping the references.
>
> xpcs_create() handles the failure through out_free_data, which calls
> xpcs_free_data() but never xpcs_clear_clks(), so the clk references are
> leaked.
>
> [...]
Here is the summary with links:
- [net] net: pcs: xpcs: fix clock reference leak on xpcs_init_clks failure
https://git.kernel.org/netdev/net/c/9892d71cf0ce
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html