From: Liviu Dudau <liviu.dudau@arm.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Sudeep Holla <sudeep.holla@arm.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
Russell King <linux@armlinux.org.uk>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: versatile: fix OF node leak in CPUs prepare
Date: Thu, 29 Aug 2024 13:33:45 +0100 [thread overview]
Message-ID: <ZtBqqXWvVWDtaeE8@e110455-lin.cambridge.arm.com> (raw)
In-Reply-To: <20240826054934.10724-1-krzysztof.kozlowski@linaro.org>
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@linaro.org>
Acked-by: Liviu Dudau <liviu.dudau@arm.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! /
---------------
¯\_(ツ)_/¯
next prev parent reply other threads:[~2024-08-29 12:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-26 5:49 Krzysztof Kozlowski
2024-08-26 5:49 ` [PATCH 2/2] bus: integrator-lm: fix OF node leak in probe() Krzysztof Kozlowski
2024-08-29 12:34 ` Liviu Dudau
2024-08-29 12:33 ` Liviu Dudau [this message]
2024-08-29 16:23 ` [PATCH 1/2] ARM: versatile: fix OF node leak in CPUs prepare Sudeep Holla
2024-09-02 8:19 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZtBqqXWvVWDtaeE8@e110455-lin.cambridge.arm.com \
--to=liviu.dudau@arm.com \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=lpieralisi@kernel.org \
--cc=sudeep.holla@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®