All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cristian Marussi <cristian.marussi@arm.com>
To: Amitai Gottlieb <amitaig@hailo.ai>
Cc: arm-scmi@vger.kernel.org, cristian.marussi@arm.com, sudeep.holla@arm.com
Subject: Re: [PATCH] firmware: arm_scmi: Fix unused notifier-block in unregister
Date: Thu, 11 Dec 2025 12:17:01 +0000	[thread overview]
Message-ID: <aTq2IA6V1nTE-XSC@pluto> (raw)
In-Reply-To: <20251211114926.709004-1-amitaig@hailo.ai>

On Thu, Dec 11, 2025 at 01:49:27PM +0200, Amitai Gottlieb wrote:
> In function `scmi_devm_notifier_unregister` the notifier-block parameter
> was unused and therefore never passed to `devres_release`. This causes
> the function to always return -ENOENT and fail to unregister the
> notifier.

[ CC-ing also Sudeep ]

Hi,

thanks for this.

LGTM.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>

> 
> In drivers that rely on this function for cleanup this causes
> unexpected failures including kernel-panic.
> 
> Fixes: 5ad3d1cf7d34 ("firmware: arm_scmi: Introduce new devres
> notification ops")
> Signed-off-by: Amitai Gottlieb <amitaig@hailo.ai>
> ---
> 
> This is not needed upstream becaues the bug was fixed
> in a refactor by commit 264a2c520628 ("firmware: arm_scmi: Simplify
> scmi_devm_notifier_unregister").  It is needed for the 5.15, 6.1 and
> 6.6 kernels.

I think there is some sort of syntax to refer to the applicable Kernel
versions in the tag line....not sure it can be easily followed here...so
maybe the above comment is enough...

More details here...

https://docs.kernel.org/process/stable-kernel-rules.html

Thanks,
Cristian

  reply	other threads:[~2025-12-11 12:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-11 11:49 [PATCH] firmware: arm_scmi: Fix unused notifier-block in unregister Amitai Gottlieb
2025-12-11 12:17 ` Cristian Marussi [this message]
2025-12-11 12:53   ` Dan Carpenter
     [not found]     ` <DB9P194MB13560B1BBAD2A8A8E6260719C1ADA@DB9P194MB1356.EURP194.PROD.OUTLOOK.COM>
2025-12-15 12:19       ` Fw: " amitaigottlieb
2025-12-15 15:13         ` Sudeep Holla
  -- strict thread matches above, loose matches on Subject: below --
2025-12-15 16:37 Amitai Gottlieb
2025-12-15 17:13 ` Sudeep Holla

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=aTq2IA6V1nTE-XSC@pluto \
    --to=cristian.marussi@arm.com \
    --cc=amitaig@hailo.ai \
    --cc=arm-scmi@vger.kernel.org \
    --cc=sudeep.holla@arm.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 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.