Thread (2 messages) 2 messages, 2 authors, 2026-02-24

Re: [PATCH] pinctrl: meson: amlogic-a4: Fix device node reference leak in aml_dt_node_to_map_pinmux()

From: Linus Walleij <linusw@kernel.org>
Date: 2026-02-24 08:59:50
Also in: linux-amlogic, linux-gpio, lkml

On Wed, Feb 18, 2026 at 5:51 PM Felix Gu [off-list ref] wrote:
The of_get_parent() function returns a device_node with an incremented
reference count.

Use the __free(device_node) cleanup attribute to ensure of_node_put()
is automatically called when pnode goes out of scope, fixing a
reference leak.

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