Subject: Re: [PATCH v3] net: lan966x: avoid unregistering netdev on register failure

From: [email-masked]
Date: Fri, 08 May 2026 23:40:05 +0000

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email-masked]>:

On Wed,  6 May 2026 21:43:11 +0900 you wrote:
> lan966x_probe_port() stores the newly allocated net_device in the
> port before calling register_netdev(). If register_netdev() fails,
> the probe error path calls lan966x_cleanup_ports(), which sees
> port->dev and calls unregister_netdev() for a device that was never
> registered.
> 
> Destroy the phylink instance created for this port and clear port->dev
> before returning the registration error. The common cleanup path now skips
> ports without port->dev before reaching the registered netdev cleanup, so
> it only handles ports that reached the registered-netdev lifetime.
> 
> [...]

Here is the summary with links:
  - [v3] net: lan966x: avoid unregistering netdev on register failure
    https://git.kernel.org/netdev/net/c/c4f3d6eb1fcf

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