mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Cc: mjg59@srcf.ucam.org, ali@kernel.org,
	Hans de Goede <hansg@kernel.org>,
	 platform-driver-x86@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] platform/x86: dell-laptop: unregister notifier on init failure
Date: Mon, 8 Jun 2026 13:14:52 +0300 (EEST)	[thread overview]
Message-ID: <66e6371d-8dc1-6aec-0888-05c946c340fa@linux.intel.com> (raw)
In-Reply-To: <20260603063803.765119-1-lihaoxiang@isrc.iscas.ac.cn>

On Wed, 3 Jun 2026, Haoxiang Li wrote:

> Add the missing dell_laptop_unregister_notifier() call to the
> failure path after notifier registration.
> 

Missing a Fixes tag?

> Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
> ---
>  drivers/platform/x86/dell/dell-laptop.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/platform/x86/dell/dell-laptop.c b/drivers/platform/x86/dell/dell-laptop.c
> index 57748c3ea24f..5dd607e8d2ab 100644
> --- a/drivers/platform/x86/dell/dell-laptop.c
> +++ b/drivers/platform/x86/dell/dell-laptop.c
> @@ -2551,6 +2551,7 @@ static int __init dell_init(void)
>  	if (mute_led_registered)
>  		led_classdev_unregister(&mute_led_cdev);
>  fail_led:
> +	dell_laptop_unregister_notifier(&dell_laptop_notifier);

Unfortunately, this doesn't look like to be the only problem here.

>  	dell_battery_exit();
>  	dell_cleanup_rfkill();
>  fail_rfkill:
> 

-- 
 i.


      reply	other threads:[~2026-06-08 10:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-03  6:38 Haoxiang Li
2026-06-08 10:14 ` Ilpo Järvinen [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=66e6371d-8dc1-6aec-0888-05c946c340fa@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=ali@kernel.org \
    --cc=hansg@kernel.org \
    --cc=lihaoxiang@isrc.iscas.ac.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=platform-driver-x86@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®