Re: [PATCH net] net: xgene: fix mdio_np leak in xgene_mdiobus_register()
From: patchwork-bot+netdevbpf
Date: Sun May 10 2026 - 13:21:12 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 7 May 2026 19:50:24 +0530 you wrote:
> The for_each_child_of_node() loop captures mdio_np via break,
> holding the refcount. of_mdiobus_register() does not consume the
> reference, so it leaks on success.
>
> Put it after registration.
>
> Fixes: e6ad767305eb ("drivers: net: Add APM X-Gene SoC ethernet driver support.")
> Signed-off-by: Shitalkumar Gandhi <shitalkumar.gandhi@xxxxxxxxxxxxxxxxxxx>
>
> [...]
Here is the summary with links:
- [net] net: xgene: fix mdio_np leak in xgene_mdiobus_register()
https://git.kernel.org/netdev/net/c/a450063ef86b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html