[PATCH] ARM: meson: Fix refcount leak in meson_smp_prepare_cpus

Martin Blumenstingl martin.blumenstingl at googlemail.com
Thu May 12 03:56:17 PDT 2022


On Thu, May 12, 2022 at 4:16 AM Miaoqian Lin <linmq006 at gmail.com> 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: d850f3e5d296 ("ARM: meson: Add SMP bringup code for Meson8 and Meson8b")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>

Thank you for spotting and fixing this issue!



More information about the linux-arm-kernel mailing list