Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Krzysztof Kozlowski and committed by
Linus Walleij
874c5b60 8400291e

+1
+1
drivers/soc/versatile/soc-integrator.c
··· 113 113 return -ENODEV; 114 114 115 115 syscon_regmap = syscon_node_to_regmap(np); 116 + of_node_put(np); 116 117 if (IS_ERR(syscon_regmap)) 117 118 return PTR_ERR(syscon_regmap); 118 119