Re: [PATCH v4] clk: nomadik: Add missing of_node_put()

From: Linus Walleij
Date: Mon Jun 27 2022 - 05:26:31 EST


On Fri, Jun 17, 2022 at 3:43 AM Liang He <windhl@xxxxxxx> wrote:

> In nomadik_src_init(), of_find_matching_node() will return a node
> pointer with refcount incremented. We should use of_node_put() in
> fail path or when it is not used anymore.
>
> Signed-off-by: Liang He <windhl@xxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij