diff options
author | Krzysztof Kozlowski <[email protected]> | 2024-08-26 07:49:34 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2024-09-02 10:18:43 +0200 |
commit | 15a62b81175885b5adfcaf49870466e3603f06c7 (patch) | |
tree | 71302f8d7b5c11dfdef6e7be796e2ce64eb2adec | |
parent | f2642d97f2105ed17b2ece0c597450f2ff95d704 (diff) |
bus: integrator-lm: fix OF node leak in probe()
Driver code is leaking OF node reference from of_find_matching_node() in
probe().
Fixes: ccea5e8a5918 ("bus: Add driver for Integrator/AP logic modules")
Cc: [email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Liviu Dudau <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
-rw-r--r-- | drivers/bus/arm-integrator-lm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bus/arm-integrator-lm.c b/drivers/bus/arm-integrator-lm.c index b715c8ab36e8..a65c79b08804 100644 --- a/drivers/bus/arm-integrator-lm.c +++ b/drivers/bus/arm-integrator-lm.c @@ -85,6 +85,7 @@ static int integrator_ap_lm_probe(struct platform_device *pdev) return -ENODEV; } map = syscon_node_to_regmap(syscon); + of_node_put(syscon); if (IS_ERR(map)) { dev_err(dev, "could not find Integrator/AP system controller\n"); |