Re: [PATCH] fsl/fman: Fix clk reference leak in read_dts_node()
From: patchwork-bot+netdevbpf
Date: Tue Sep 22 2026 - 07:27:28 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 17 Sep 2026 11:01:35 +0000 you wrote:
> of_clk_get() returns a clock with its reference count incremented, but
> read_dts_node() only uses it to read the rate and never calls clk_put().
> The clock is not stored anywhere, so the reference cannot be released
> later either.
>
> Release the clock once its rate has been read, which also covers the
> error path taken when the rate is zero.
>
> [...]
Here is the summary with links:
- fsl/fman: Fix clk reference leak in read_dts_node()
https://git.kernel.org/netdev/net/c/a644f09b2090
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html