linux/drivers/pinctrl/cirrus
Haotian Zhang 9b07cdf86a pinctrl: cirrus: Fix fwnode leak in cs42l43_pin_probe()
The driver calls fwnode_get_named_child_node() which takes a reference
on the child node, but never releases it, which causes a reference leak.

Fix by using devm_add_action_or_reset() to automatically release the
reference when the device is removed.

Fixes: d5282a5392 ("pinctrl: cs42l43: Add support for the cs42l43")
Suggested-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-11-10 00:01:22 +01:00
..
Kconfig pinctrl: lochnagar: Don't build on MIPS 2023-11-16 14:40:38 +01:00
Makefile pinctrl: cs42l43: Add support for the cs42l43 2023-08-17 12:06:11 +01:00
pinctrl-cs42l43.c pinctrl: cirrus: Fix fwnode leak in cs42l43_pin_probe() 2025-11-10 00:01:22 +01:00
pinctrl-cs47l15.c
pinctrl-cs47l35.c
pinctrl-cs47l85.c
pinctrl-cs47l90.c
pinctrl-cs47l92.c
pinctrl-lochnagar.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
pinctrl-madera-core.c pinctrl: generic: rename PIN_CONFIG_OUTPUT to LEVEL 2025-09-08 14:24:20 +02:00
pinctrl-madera.h