Re: [PATCH net-next] net: dsa: hellcreek: fix device_node leak in hellcreek_led_setup()

From: patchwork-bot+netdevbpf

Date: Wed Nov 11 2026 - 00:50:34 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Dave Miller <davem@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>:

On Fri, 06 Nov 2026 16:48:32 +0800 you wrote:
> hellcreek_led_setup() walks the two LED child nodes of the "leds" node
> with of_get_next_available_child(). The helper drops the reference on
> the child passed to it and takes one on the child it returns. After
> the second call the caller holds a reference on the second LED node.
>
> That reference is never dropped. The out: label only releases the
> "leds" node itself. Boards with both LED child nodes leak one
> device_node reference per probe, on the registration failures as well
> as on the success path.
>
> [...]

Here is the summary with links:
- [net-next] net: dsa: hellcreek: fix device_node leak in hellcreek_led_setup()
https://git.kernel.org/netdev/net-next/c/c4c470912125

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