[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZtBqqXWvVWDtaeE8@e110455-lin.cambridge.arm.com>
Date: Thu, 29 Aug 2024 13:33:45 +0100
From: Liviu Dudau <liviu.dudau@....com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Sudeep Holla <sudeep.holla@....com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Russell King <linux@...linux.org.uk>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] ARM: versatile: fix OF node leak in CPUs prepare
On Mon, Aug 26, 2024 at 07:49:33AM +0200, Krzysztof Kozlowski wrote:
> Machine code is leaking OF node reference from of_find_matching_node()
> in realview_smp_prepare_cpus().
>
> Fixes: 5420b4b15617 ("ARM: realview: add an DT SMP boot method")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Acked-by: Liviu Dudau <liviu.dudau@....com>
I think Sudeep is going to take the series through his tree, but he might
be on holiday at this time.
Best regards,
Liviu
>
> ---
>
> Not Cc-ing stable as this should have almost no impact, except code
> correctness.
> ---
> arch/arm/mach-versatile/platsmp-realview.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-versatile/platsmp-realview.c b/arch/arm/mach-versatile/platsmp-realview.c
> index 6965a1de727b..d38b2e174257 100644
> --- a/arch/arm/mach-versatile/platsmp-realview.c
> +++ b/arch/arm/mach-versatile/platsmp-realview.c
> @@ -70,6 +70,7 @@ static void __init realview_smp_prepare_cpus(unsigned int max_cpus)
> return;
> }
> map = syscon_node_to_regmap(np);
> + of_node_put(np);
> if (IS_ERR(map)) {
> pr_err("PLATSMP: No syscon regmap\n");
> return;
> --
> 2.43.0
>
--
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
Powered by blists - more mailing lists