From: Dust Li <dust.li@linux.alibaba.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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: Tue, 24 Nov 2026 12:13:04 +0800 [thread overview]
Message-ID: <awUO0BqIzkLTLvFb@linux.alibaba.com> (raw)
In-Reply-To: <2026112329-moonshine-vanity-29ae@gregkh>
On 2026-11-23 08:26:37, Greg Kroah-Hartman wrote:
>On Sun, Nov 08, 2026 at 12:14:15AM +0800, Dust Li wrote:
>> From: Breno Leitao <leitao@debian.org>
>>
>> For dummy devices, exit earlier at free_netdev() instead of executing
>> the whole function. This is necessary, because dummy devices are
>> special, and shouldn't have the second part of the function executed.
>>
>> Otherwise reg_state, which is NETREG_DUMMY, will be overwritten and
>> there will be no way to identify that this is a dummy device. Also, this
>> device do not need the final put_device(), since dummy devices are not
>> registered (through register_netdevice()), where the device reference is
>> increased (at netdev_register_kobject()/device_add()).
>>
>> Suggested-by: Jakub Kicinski <kuba@kernel.org>
>> Signed-off-by: Breno Leitao <leitao@debian.org>
>> Reviewed-by: Ido Schimmel <idosch@nvidia.com>
>> Signed-off-by: David S. Miller <davem@davemloft.net>
>> Signed-off-by: Dust Li <dust.li@linux.alibaba.com>
>> ---
>> net/core/dev.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>
><formletter>
>
>This is not the correct way to submit patches for inclusion in the
>stable kernel tree. Please read:
> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
>for how to do this properly.
>
></formletter>
Hi Greg,
Sorry, I missed the upstream commit id in the commit message.
I'll pay more attention on that next time.
BTW I notice Sasha had already picked it and added the corrent id, thanks Sasha !
Best regards,
Dust
prev parent reply other threads:[~2026-11-24 4:13 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
2026-11-23 7:26 ` Greg Kroah-Hartman
2026-11-24 4:13 ` Dust Li [this message]
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=awUO0BqIzkLTLvFb@linux.alibaba.com \
--to=dust.li@linux.alibaba.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gregkh@linuxfoundation.org \
--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.