linux/drivers/pinctrl/meson
Felix Gu a2539b92e4 pinctrl: meson: amlogic-a4: Fix device node reference leak in aml_dt_node_to_map_pinmux()
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: 6e9be3abb7 ("pinctrl: Add driver support for Amlogic SoCs")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
2026-02-24 10:51:30 +01:00
..
Kconfig pinctrl: meson: extend build coverage with COMPILE_TEST=y 2026-01-09 10:31:09 +01:00
Makefile pinctrl: Add driver support for Amlogic SoCs 2025-02-28 00:03:18 +01:00
pinctrl-amlogic-a4.c pinctrl: meson: amlogic-a4: Fix device node reference leak in aml_dt_node_to_map_pinmux() 2026-02-24 10:51:30 +01:00
pinctrl-amlogic-c3.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-amlogic-t7.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson-a1.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson-axg-pmx.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson-axg-pmx.h pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson-axg.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson-g12a.c pinctrl: meson-g12a: add GPIOC_7 pcie_clkreqn pinmux 2025-08-19 14:18:38 +02:00
pinctrl-meson-gxbb.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson-gxl.c pinctrl: meson-gxl: add missing i2c_d pinmux 2025-08-28 23:06:03 +02:00
pinctrl-meson-s4.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson.c pinctrl: meson: mark the GPIO controller as sleeping 2026-01-19 01:13:22 +01:00
pinctrl-meson.h pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson8-pmx.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson8-pmx.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 446 2019-06-05 17:37:18 +02:00
pinctrl-meson8.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00
pinctrl-meson8b.c pinctrl: meson: Constify some structures 2024-08-23 18:01:42 +02:00