]> git.baikalelectronics.ru Git - kernel.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)
committerArnd Bergmann <arnd@arndb.de>
Tue, 14 Jun 2022 10:19:13 +0000 (12:19 +0200)
commit71f29535df0c00af8f3514eee19176aaf047167a
treefd039c1f0c322a5c4e6855ddfb35b91772b2c0a1
parentd9407f7355148f7ca2cfa929a9fd0152cc17bc2b
ARM: Fix refcount leak in axxia_boot_secondary

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: 68d3ca7e4625 ("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>
arch/arm/mach-axxia/platsmp.c