netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: yicongsrfy@163.com
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	oneukum@suse.com, kuba@kernel.org, linux-usb@vger.kernel.org,
	netdev@vger.kernel.org, yicong@kylinos.cn
Subject: Re: [PATCH] net: usb: r8152: add error handling in rtl8152_driver_init
Date: Thu, 9 Oct 2025 09:52:55 +0100	[thread overview]
Message-ID: <20251009085255.GU3060232@horms.kernel.org> (raw)
In-Reply-To: <20251009075833.103523-1-yicongsrfy@163.com>

On Thu, Oct 09, 2025 at 03:58:33PM +0800, yicongsrfy@163.com wrote:
> From: Yi Cong <yicong@kylinos.cn>
> 
> rtl8152_driver_init missing error handling.
> If cannot register rtl8152_driver, rtl8152_cfgselector_driver
> should be deregistered.
> 
> Fixes: ec51fbd1b8a2 ("r8152: add USB device driver for config selection")
> Signed-off-by: Yi Cong <yicong@kylinos.cn>

Thanks Yi Cong,

I agree that this addresses a bug.
And that the bug was introduced by the cited commit.

Reviewed-by: Simon Horman <horms@kernel.org>

Some points to keep in mind for future patch submissions.
(I don't think you need to repost because of these,
 but others may think otherwise).

1. Please tag Networking patches with the target tree.
   In this case, as a bug fix, that would be net.

   Subject: [PATCH net] ...

   Otherwise it would probably be net-next.

2. Git history is not entirely consistent here, but
   I'd say that 'r8152:' is good prefix for this patch (less is more IMHO).

   Subject: [PATCH net] r8152: ...

3. It is, TBH, not strictly followed for networking patches. But officially
   bug fixes for stable should be CCed to stable@vger.kernel.org. Greg KH
   tends to be CCed on such patches, and has a bot that complains about this.

4. Please generate the CC list using

   ./scripts/get_maintainer.pl this.patch

   Perhaps with --git-min-percent=25

For more information see:
https://docs.kernel.org/process/maintainer-netdev.html

...

  reply	other threads:[~2025-10-09  8:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-09  7:58 [PATCH] net: usb: r8152: add error handling in rtl8152_driver_init yicongsrfy
2025-10-09  8:52 ` Simon Horman [this message]
2025-10-09  9:54 ` Greg KH
2025-10-09 12:01 ` Andrew Lunn

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=20251009085255.GU3060232@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oneukum@suse.com \
    --cc=yicong@kylinos.cn \
    --cc=yicongsrfy@163.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).