[PATCH] ARM: cns3xxx: Fix refcount leak in cns3xxx_init

Arnd Bergmann arnd at arndb.de
Fri Jun 24 08:11:06 PDT 2022


On Thu, Jun 23, 2022 at 10:36 AM Krzysztof Hałasa <khalasa at piap.pl> wrote:
>
> Miaoqian Lin <linmq006 at gmail.com> writes:
>
> > 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: 415f59142d9d ("ARM: cns3xxx: initial DT support")
> > Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>
>
> Acked-by: Krzysztof Halasa <khalasa at piap.pl>
>
> Arnd, I guess you are in the best position to pick this patch up?
> Thanks to both of you.

Done now, thanks!

        Arnd



More information about the linux-arm-kernel mailing list