Re: [PATCH v2] net: stmmac: release MDIO node if bus data allocation fails
From: patchwork-bot+netdevbpf
Date: Tue Nov 10 2026 - 17:01:15 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sun, 08 Nov 2026 11:02:31 +0000 you wrote:
> stmmac_mdio_setup() takes a reference on the MDIO device tree node and
> stores it in plat->mdio_node before allocating plat->mdio_bus_data. If
> that allocation fails, the function returns -ENOMEM and the caller
> jumps to error_put_phy, which only drops plat->phy_node, so the
> reference on the MDIO node is leaked.
>
> Release the reference before returning, using an error label so that
> the cleanup stays in one place.
>
> [...]
Here is the summary with links:
- [v2] net: stmmac: release MDIO node if bus data allocation fails
https://git.kernel.org/netdev/net-next/c/8959c2030f5c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html