]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2024 09:56:53 +0000 (11:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2024 09:56:53 +0000 (11:56 +0200)
added patches:
soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch

queue-5.4/series
queue-5.4/soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch [new file with mode: 0644]

index 04ac8f41824a38f6809564332da9ec7125aa6bcf..0b8c1b8f5738ac565807762df60fcffd1fb87542 100644 (file)
@@ -144,3 +144,4 @@ net-qrtr-update-packets-cloning-when-broadcasting.patch
 netfilter-ctnetlink-compile-ctnetlink_label_size-wit.patch
 crypto-aead-cipher-zeroize-key-buffer-after-use.patch
 remove-.orig-pattern-from-.gitignore.patch
+soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch
diff --git a/queue-5.4/soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch b/queue-5.4/soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch
new file mode 100644 (file)
index 0000000..798f5cf
--- /dev/null
@@ -0,0 +1,32 @@
+From 874c5b601856adbfda10846b9770a6c66c41e229 Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
+Date: Sun, 25 Aug 2024 20:05:22 +0200
+Subject: soc: versatile: integrator: fix OF node leak in probe() error path
+
+From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
+
+commit 874c5b601856adbfda10846b9770a6c66c41e229 upstream.
+
+Driver is leaking OF node reference obtained from
+of_find_matching_node().
+
+Fixes: f956a785a282 ("soc: move SoC driver for the ARM Integrator")
+Cc: stable@vger.kernel.org
+Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
+Link: https://lore.kernel.org/20240825-soc-dev-fixes-v1-1-ff4b35abed83@linaro.org
+Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/soc/versatile/soc-integrator.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/soc/versatile/soc-integrator.c
++++ b/drivers/soc/versatile/soc-integrator.c
+@@ -111,6 +111,7 @@ static int __init integrator_soc_init(vo
+               return -ENODEV;
+       syscon_regmap = syscon_node_to_regmap(np);
++      of_node_put(np);
+       if (IS_ERR(syscon_regmap))
+               return PTR_ERR(syscon_regmap);