Re: [PATCH net] net: phylink: put link_gpio if phylink_create fails

From: patchwork-bot+netdevbpf

Date: Tue Jul 28 2026 - 22:03:35 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Sun, 26 Jul 2026 17:08:05 +0200 you wrote:
> In phylink_create() if phylink_register_sfp() returns an error, link_gpio
> obtained by phylink_parse_fixedlink() is never released. While this is a
> very unlikely scenario, it's worth to fix/handle this.
>
> This was present from the very first implementation of phylink but got
> relevant only with the introduction of ce0aa27ff3f6 ("sfp: add sfp-bus to
> bridge between network devices and sfp cages") where additional function
> were added after phylink_parse_fixedlink() making the release of link_gpio
> needed if such additional function errored out.
>
> [...]

Here is the summary with links:
- [net] net: phylink: put link_gpio if phylink_create fails
https://git.kernel.org/netdev/net/c/0fe1e3e8f338

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