soc: versatile: integrator: fix OF node leak in probe() error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
Link: https://lore.kernel.org/20240825-soc-dev-fixes-v1-1-ff4b35abed83@xxxxxxxxxx
Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 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
@@ -113,6 +113,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);
 


Patches currently in stable-queue which might be from krzysztof.kozlowski@xxxxxxxxxx are

queue-6.11/reset-k210-fix-of-node-leak-in-probe-error-path.patch
queue-6.11/power-supply-axp20x_battery-remove-design-from-min-a.patch
queue-6.11/arm64-dts-exynos-exynos7885-jackpotlte-correct-ram-a.patch
queue-6.11/soc-versatile-integrator-fix-of-node-leak-in-probe-error-path.patch
queue-6.11/reset-berlin-fix-of-node-leak-in-probe-error-path.patch
queue-6.11/iio-magnetometer-ak8975-drop-incorrect-ak09116-compa.patch
queue-6.11/power-supply-max17042_battery-fix-soc-threshold-calc.patch
queue-6.11/arm-versatile-fix-of-node-leak-in-cpus-prepare.patch
queue-6.11/dt-bindings-iio-asahi-kasei-ak8975-drop-incorrect-ak.patch
queue-6.11/arm-dts-imx7d-zii-rmu2-fix-ethernet-phy-pinctrl-prop.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux