Re: [PATCH net v2] net: cpsw: fix netdev cleanup on probe failure

From: patchwork-bot+netdevbpf

Date: Wed Oct 21 2026 - 20:14:49 EST


Hello:

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

On Mon, 19 Oct 2026 08:04:30 +0200 you wrote:
> The legacy CPSW driver registers its netdevs before requesting IRQs. If
> a later IRQ request fails in dual-EMAC mode, the probe error path
> unregisters only the primary netdev. Devres then calls free_netdev() on
> the still-registered secondary netdev, triggering the reg_state BUG_ON.
>
> Once registered, either interface can queue rx_mode_work through
> dev_set_rx_mode(). The error path does not drain the work before devres
> releases the netdev and its private data, allowing the worker to access
> freed memory.
>
> [...]

Here is the summary with links:
- [net,v2] net: cpsw: fix netdev cleanup on probe failure
https://git.kernel.org/netdev/net-next/c/6acb220312d5

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