]> www.infradead.org Git - users/dwmw2/linux.git/commit
ARM: meson: Fix refcount leak in meson_smp_prepare_cpus
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 12 May 2022 02:16:10 +0000 (06:16 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:32:19 +0000 (16:32 +0200)
commit3d90607e7e6afa89768b0aaa915b58bd2b849276
tree5bfc5e8975b024b23905cb84ee80aa9dc80d816f
parente14930e9f9c657cf109326752871d3c701b12326
ARM: meson: Fix refcount leak in meson_smp_prepare_cpus

[ Upstream commit 34d2cd3fccced12b958b8848e3eff0ee4296764c ]

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: d850f3e5d296 ("ARM: meson: Add SMP bringup code for Meson8 and Meson8b")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220512021611.47921-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-meson/platsmp.c