Re: [PATCH 6.6.y] net: free_netdev: exit earlier if dummy

From: Greg Kroah-Hartman

Date: Mon Nov 23 2026 - 02:27:22 EST


On Tue, Nov 10, 2026 at 02:36:14PM +0800, Dust Li wrote:
> On 2026-11-08 00:14:15, Dust Li wrote:
>
> Hi Greg, Sasha
>
> Can you pick up this patch for 6.6 ?
>
> This is a prerequisite that was missed when 6.6.y picked up the
> dummy-net_device conversion of the mediatek driver.
>
> 6.6.158 took b209bd6d0bff ("net: mediatek: mtk_eth_sock: allocate dummy
> net_device dynamically") as d5d57501f543, followed by 16f3a28cf5f8
> (as 81e82340170ae) and "allocate dummy netdev sooner" (efc91ab1d97bd).
>
> alloc_netdev_dummy() -> init_dummy_netdev_core() sets
> dev->reg_state = NETREG_DUMMY, but 6.6.y free_netdev() only special
> cases NETREG_UNREGISTERING and NETREG_UNINITIALIZED. So every
> free_netdev(eth->dummy_dev) -- mtk_remove() at
> drivers/net/ethernet/mediatek/mtk_eth_soc.c and the probe error
> path -- walks into
>
> BUG_ON(dev->reg_state != NETREG_UNREGISTERED);
>
> Upstream f8d05679fb3f and b209bd6d0bff both landed in v6.10-rc1, so
> mainline was never broken.
>
> 5.10.y / 5.15.y / 6.1.y - alloc_netdev_dummy() does not exist and no
> driver creates a dynamically allocated
> dummy net_device
>
> So only 6.6.y need this.


But what commit id is "this"?

thanks,

greg k-h