Re: [PATCH v2] pinctrl: cirrus: Fix fwnode leak in cs42l43_pin_probe()
From: Linus Walleij
Date: Sun Nov 09 2025 - 18:02:09 EST
On Tue, Oct 28, 2025 at 4:06 AM Haotian Zhang <vulab@xxxxxxxxxxx> wrote:
> 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: d5282a539297 ("pinctrl: cs42l43: Add support for the cs42l43")
> Suggested-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Haotian Zhang <vulab@xxxxxxxxxxx>
Patch applied.
Yours,
Linus Walleij