All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Dust Li <dust.li@linux.alibaba.com>
Cc: stable@vger.kernel.org, Breno Leitao <leitao@debian.org>,
	Sasha Levin <sashal@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 6.6.y] net: free_netdev: exit earlier if dummy
Date: Mon, 23 Nov 2026 08:27:11 +0100	[thread overview]
Message-ID: <2026112357-twister-activity-1181@gregkh> (raw)
In-Reply-To: <avK7XqLvdaeWlp8o@linux.alibaba.com>

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

  reply	other threads:[~2026-11-23  7:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07 16:14 [PATCH 6.6.y] net: free_netdev: exit earlier if dummy Dust Li
2026-11-10  6:36 ` Dust Li
2026-11-23  7:27   ` Greg Kroah-Hartman [this message]
2026-11-23  7:26 ` Greg Kroah-Hartman
2026-11-24  4:13   ` Dust Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026112357-twister-activity-1181@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=davem@davemloft.net \
    --cc=dust.li@linux.alibaba.com \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=leitao@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.