linux/drivers/pinctrl/meson
Felix Gu acbcfe2f8e pinctrl: meson: amlogic-a4: Fix device node reference leak in aml_dt_node_to_map_pinmux()
[ Upstream commit a2539b92e4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-12 07:09:47 -04:00
..
Kconfig pinctrl: meson: Do not enable by default during compile testing 2025-04-15 10:08:42 +02: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-03-12 07:09:47 -04: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-02-06 16:57:37 +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