Re: [PATCH net] net: mdio: fix resource leak in mdiobus_register_device()
From: patchwork-bot+netdevbpf
Date: Mon Nov 10 2025 - 21:30:44 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sat, 8 Nov 2025 07:49:22 +0100 you wrote:
> Fix a possible leak in mdiobus_register_device() when both a
> reset-gpio and a reset-controller are present.
> Clean up the already claimed reset-gpio, when the registration of
> the reset-controller fails, so when an error code is returned, the
> device retains its state before the registration attempt.
>
> Link: https://lore.kernel.org/all/20251106144603.39053c81@xxxxxxxxxx/
> Fixes: 71dd6c0dff51 ("net: phy: add support for reset-controller")
> Signed-off-by: Buday Csaba <buday.csaba@xxxxxxxxx>
>
> [...]
Here is the summary with links:
- [net] net: mdio: fix resource leak in mdiobus_register_device()
https://git.kernel.org/netdev/net/c/e6ca8f533ed4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html