Re: [PATCH v3] tg3: clean up PHYLIB resources on probe failure

From: patchwork-bot+netdevbpf

Date: Tue Sep 22 2026 - 05:36:43 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 17 Sep 2026 14:33:36 -0400 you wrote:
> tg3_get_invariants() can register an MDIO bus and connect a PHY for
> USE_PHYLIB devices. If tg3_init_one() later fails, its common error path
> releases the mappings and netdev without undoing those PHYLIB resources.
>
> Disconnect the PHY and unregister the MDIO bus before the remaining
> teardown. Guard PHY cleanup with USE_PHYLIB to match tg3_phy_init(), and
> call tg3_mdio_fini() unconditionally to match tg3_mdio_init(). The existing
> IS_CONNECTED and MDIOBUS_INITED flags make both helpers safe when
> initialization only completed partially.
>
> [...]

Here is the summary with links:
- [v3] tg3: clean up PHYLIB resources on probe failure
https://git.kernel.org/netdev/net/c/a92e1a412c53

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