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

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

diff --git a/queue-6.6/firmware-arm_scmi-fix-unused-notifier-block-in-unregister.patch b/queue-6.6/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 f80c5120768560c6ca1bb0b0129139b75b0d8304..3685b5530f87b1980dbc0cbd5b599edc435f8c8d 100644 (file)
@@ -733,3 +733,4 @@ net-stmmac-make-sure-that-ptp_rate-is-not-0-before-configuring-est.patch
 pwm-stm32-always-program-polarity.patch
 blk-mq-setup-queue-tag_set-before-initializing-hctx.patch
 tty-fix-tty_port_tty_-hangup-kernel-doc.patch
+firmware-arm_scmi-fix-unused-notifier-block-in-unregister.patch