[PATCH] pinctrl: meson: amlogic-a4: Fix device node reference leak in bank helpers

Linus Walleij linusw at kernel.org
Mon Feb 2 16:29:20 PST 2026


On Tue, Jan 27, 2026 at 7:23 PM Felix Gu <ustc.gu at gmail.com> wrote:

> of_parse_phandle_with_fixed_args() increments the reference count of the
> returned device node, so it must be explicitly released using
> of_node_put() after use.
>
> Fix the reference leak in aml_bank_pins() and aml_bank_number() by
> adding the missing of_node_put() calls.
>
> Fixes: 6e9be3abb78c ("pinctrl: Add driver support for Amlogic SoCs")
> Signed-off-by: Felix Gu <ustc.gu at gmail.com>

Patch applied!

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list