Thread (3 messages) 3 messages, 3 authors, 2026-02-03

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

From: Linus Walleij <linusw@kernel.org>
Date: 2026-02-03 00:29:33
Also in: linux-amlogic, linux-gpio, lkml

On Tue, Jan 27, 2026 at 7:23 PM Felix Gu [off-list ref] 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 <redacted>
Patch applied!

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help