* [RESEND PATCH] ARM: Fix refcount leak in axxia_boot_secondary
@ 2022-06-01 9:05 Miaoqian Lin
2022-06-14 20:33 ` patchwork-bot+linux-soc
0 siblings, 1 reply; 2+ messages in thread
From: Miaoqian Lin @ 2022-06-01 9:05 UTC (permalink / raw)
To: soc; +Cc: linmq006
of_find_compatible_node() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
Add missing of_node_put() to avoid refcount leak.
Fixes: 1d22924e1c4e ("ARM: Add platform support for LSI AXM55xx SoC")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
I follow the instruction to resend this patch to soc@kernel.org.
v1 link:
https://lore.kernel.org/all/20220512020641.45156-1-linmq006@gmail.com/
---
arch/arm/mach-axxia/platsmp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-axxia/platsmp.c b/arch/arm/mach-axxia/platsmp.c
index 512943eae30a..2e203626eda5 100644
--- a/arch/arm/mach-axxia/platsmp.c
+++ b/arch/arm/mach-axxia/platsmp.c
@@ -39,6 +39,7 @@ static int axxia_boot_secondary(unsigned int cpu, struct task_struct *idle)
return -ENOENT;
syscon = of_iomap(syscon_np, 0);
+ of_node_put(syscon_np);
if (!syscon)
return -ENOMEM;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH] ARM: Fix refcount leak in axxia_boot_secondary
2022-06-01 9:05 [RESEND PATCH] ARM: Fix refcount leak in axxia_boot_secondary Miaoqian Lin
@ 2022-06-14 20:33 ` patchwork-bot+linux-soc
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+linux-soc @ 2022-06-14 20:33 UTC (permalink / raw)
To: Miaoqian Lin; +Cc: soc
Hello:
This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <arnd@arndb.de>:
On Wed, 1 Jun 2022 13:05:48 +0400 you wrote:
> of_find_compatible_node() returns a node pointer with refcount
> incremented, we should use of_node_put() on it when done.
> Add missing of_node_put() to avoid refcount leak.
>
> Fixes: 1d22924e1c4e ("ARM: Add platform support for LSI AXM55xx SoC")
> Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
>
> [...]
Here is the summary with links:
- [RESEND] ARM: Fix refcount leak in axxia_boot_secondary
https://git.kernel.org/soc/soc/c/7c7ff68daa93
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-14 20:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01 9:05 [RESEND PATCH] ARM: Fix refcount leak in axxia_boot_secondary Miaoqian Lin
2022-06-14 20:33 ` patchwork-bot+linux-soc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox