Skip to content

Commit 15a62b8

Browse files
krzkLinus Walleij
authored andcommitted
bus: integrator-lm: fix OF node leak in probe()
Driver code is leaking OF node reference from of_find_matching_node() in probe(). Fixes: ccea5e8 ("bus: Add driver for Integrator/AP logic modules") Cc: stable@vger.kernel.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Link: https://lore.kernel.org/20240826054934.10724-2-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent f2642d9 commit 15a62b8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/bus/arm-integrator-lm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ static int integrator_ap_lm_probe(struct platform_device *pdev)
8585
return -ENODEV;
8686
}
8787
map = syscon_node_to_regmap(syscon);
88+
of_node_put(syscon);
8889
if (IS_ERR(map)) {
8990
dev_err(dev,
9091
"could not find Integrator/AP system controller\n");

0 commit comments

Comments
 (0)