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

Linus Walleij linus.walleij at linaro.org
Mon Jun 27 02:26:14 PDT 2022


On Fri, Jun 17, 2022 at 3:43 AM Liang He <windhl at 126.com> 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 at 126.com>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list