Linux USB
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: yicongsrfy@163.com
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	oneukum@suse.com, horms@kernel.org, kuba@kernel.org,
	linux-usb@vger.kernel.org, netdev@vger.kernel.org,
	yicong@kylinos.cn, stable@vger.kernel.org
Subject: Re: [PATCH net v2] r8152: add error handling in rtl8152_driver_init
Date: Fri, 10 Oct 2025 15:54:27 +0200	[thread overview]
Message-ID: <f6cfb923-83ff-473d-a263-8d45933d8cd2@lunn.ch> (raw)
In-Reply-To: <20251010075949.337132-1-yicongsrfy@163.com>

> +
> +	ret = usb_register(&rtl8152_driver);
> +	if (ret) {
> +		usb_deregister_device_driver(&rtl8152_cfgselector_driver);
> +		return ret;
> +	}
> +
> +	return ret;

Now look at this code and think about it.

    Andrew

---
pw-bot: cr

  reply	other threads:[~2025-10-10 13:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-10  7:59 [PATCH net v2] r8152: add error handling in rtl8152_driver_init yicongsrfy
2025-10-10 13:54 ` Andrew Lunn [this message]
2025-10-11  1:27   ` yicongsrfy

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=f6cfb923-83ff-473d-a263-8d45933d8cd2@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oneukum@suse.com \
    --cc=stable@vger.kernel.org \
    --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