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

From: Arnd Bergmann
Date: Fri Jun 24 2022 - 11:11:33 EST


On Thu, Jun 23, 2022 at 10:36 AM Krzysztof Hałasa <khalasa@xxxxxxx> wrote:
>
> Miaoqian Lin <linmq006@xxxxxxxxx> 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@xxxxxxxxx>
>
> Acked-by: Krzysztof Halasa <khalasa@xxxxxxx>
>
> Arnd, I guess you are in the best position to pick this patch up?
> Thanks to both of you.

Done now, thanks!

Arnd