From: Greg Kroah-Hartman Date: Tue, 1 Oct 2024 09:56:53 +0000 (+0200) Subject: 5.4-stable patches X-Git-Tag: v6.6.54~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=882c68d7cd544b6463f13082e0ad034e8e1a211a;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch --- diff --git a/queue-5.4/series b/queue-5.4/series index 04ac8f41824..0b8c1b8f573 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -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 index 00000000000..798f5cfbd89 --- /dev/null +++ b/queue-5.4/soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch @@ -0,0 +1,32 @@ +From 874c5b601856adbfda10846b9770a6c66c41e229 Mon Sep 17 00:00:00 2001 +From: Krzysztof Kozlowski +Date: Sun, 25 Aug 2024 20:05:22 +0200 +Subject: soc: versatile: integrator: fix OF node leak in probe() error path + +From: Krzysztof Kozlowski + +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 +Link: https://lore.kernel.org/20240825-soc-dev-fixes-v1-1-ff4b35abed83@linaro.org +Signed-off-by: Linus Walleij +Signed-off-by: Greg Kroah-Hartman +--- + 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); +