[PATCH] drivers: clk: Add missing of_node_put() in clk-nomadik.c

Linus Walleij linus.walleij at linaro.org
Sat Jun 25 16:06:31 PDT 2022


On Wed, Jun 15, 2022 at 10:30 AM heliang <windhl at 126.com> wrote:

> In nomadik_src_init, of_find_matching_node() 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: heliang <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