]> www.infradead.org Git - users/dwmw2/linux.git/commit
ARM: Fix refcount leak in axxia_boot_secondary
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 1 Jun 2022 09:05:48 +0000 (13:05 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 06:59:54 +0000 (08:59 +0200)
commit44a5b3a073e5aaa5720929dba95b2725eb32bb65
tree8a08d664a9aac2b1f66ac915cce8178e419c44df
parent30bbfeb480ae8b5ee43199d72417b232590440c2
ARM: Fix refcount leak in axxia_boot_secondary

commit 7c7ff68daa93d8c4cdea482da4f2429c0398fcde upstream.

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>
Link: https://lore.kernel.org/r/20220601090548.47616-1-linmq006@gmail.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-axxia/platsmp.c