]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2026 10:45:48 +0000 (11:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2026 10:45:48 +0000 (11:45 +0100)
added patches:
firmware-arm_scmi-fix-unused-notifier-block-in-unregister.patch

queue-5.15/firmware-arm_scmi-fix-unused-notifier-block-in-unregister.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/firmware-arm_scmi-fix-unused-notifier-block-in-unregister.patch b/queue-5.15/firmware-arm_scmi-fix-unused-notifier-block-in-unregister.patch
new file mode 100644 (file)
index 0000000..0c1e4f2
--- /dev/null
@@ -0,0 +1,42 @@
+From amitaig@hailo.ai  Fri Jan  9 11:44:57 2026
+From: Amitai Gottlieb <amitaig@hailo.ai>
+Date: Tue, 16 Dec 2025 13:50:09 +0200
+Subject: firmware: arm_scmi: Fix unused notifier-block in unregister
+To: stable@vger.kernel.org
+Cc: gregkh@linuxfoundation.org, sudeep.holla@arm.com, amitaigottlieb@gmail.com, Amitai Gottlieb <amitaig@hailo.ai>, Dan Carpenter <dan.carpenter@linaro.org>, Cristian Marussi <cristian.marussi@arm.com>
+Message-ID: <20251216115009.30573-1-amitaig@hailo.ai>
+
+From: Amitai Gottlieb <amitaig@hailo.ai>
+
+In scmi_devm_notifier_unregister(), the notifier-block argument was ignored
+and never passed to devres_release(). As a result, the function always
+returned -ENOENT and failed to unregister the notifier.
+
+Drivers that depend on this helper for teardown could therefore hit
+unexpected failures, including kernel panics.
+
+Commit 264a2c520628 ("firmware: arm_scmi: Simplify scmi_devm_notifier_unregister")
+removed the faulty code path during refactoring and hence this fix is not
+required upstream.
+
+Cc: <stable@vger.kernel.org> # 5.15.x, 6.1.x, and 6.6.x
+Fixes: 5ad3d1cf7d34 ("firmware: arm_scmi: Introduce new devres notification ops")
+Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
+Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
+Signed-off-by: Amitai Gottlieb <amitaig@hailo.ai>
+Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/firmware/arm_scmi/notify.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/firmware/arm_scmi/notify.c
++++ b/drivers/firmware/arm_scmi/notify.c
+@@ -1539,6 +1539,7 @@ static int scmi_devm_notifier_unregister
+       dres.handle = sdev->handle;
+       dres.proto_id = proto_id;
+       dres.evt_id = evt_id;
++      dres.nb = nb;
+       if (src_id) {
+               dres.__src_id = *src_id;
+               dres.src_id = &dres.__src_id;
index 6e3fd164c730ca7b2efebda06aa05d51a7ed4e97..c7157ef6265aec12d817269a26b5c2311fbb3bd2 100644 (file)
@@ -497,3 +497,4 @@ pwm-stm32-always-program-polarity.patch
 ext4-filesystems-without-casefold-feature-cannot-be-mounted-with-siphash.patch
 ext4-factor-out-ext4_hash_info_init.patch
 ext4-fix-error-message-when-rejecting-the-default-hash.patch
+firmware-arm_scmi-fix-unused-notifier-block-in-unregister.patch