[PATCH] pinctrl: nomadik: Add missing of_node_put() in nmk_pinctrl_probe

Linus Walleij linus.walleij at linaro.org
Mon Mar 14 18:23:13 PDT 2022


On Mon, Mar 7, 2022 at 12:51 PM Miaoqian Lin <linmq006 at gmail.com> wrote:

> This node pointer is returned by of_parse_phandle() with refcount
> incremented in this function. Calling of_node_put() to avoid
> the refcount leak.
>
> Fixes: 32e67eee670e ("pinctrl: nomadik: Allow prcm_base to be extracted from Device Tree")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list