Re: [PATCH] ASoC: rsnd: fix OF node reference leak in rsnd_ssiu_probe()
From: Kuninori Morimoto
Date: Wed Nov 12 2025 - 18:14:28 EST
Hi Haotian
> rsnd_ssiu_probe() leaks an OF node reference obtained by
> rsnd_ssiu_of_node(). The node reference is acquired but
> never released across all return paths.
>
> Fix it by declaring the device node with the __free(device_node)
> cleanup construct to ensure automatic release when the variable goes
> out of scope.
>
> Fixes: 4e7788fb8018 ("ASoC: rsnd: add SSIU BUSIF support")
> Signed-off-by: Haotian Zhang <vulab@xxxxxxxxxxx>
> ---
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
Thank you for your help !!
Best regards
---
Kuninori Morimoto