Re: [PATCH 5/5] ASoC: rsnd: fix SSIU node reference leak in rsnd_dma_of_path
From: Kuninori Morimoto
Date: Sun Nov 08 2026 - 21:06:10 EST
Hi
> From: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
>
> rsnd_ssiu_of_node() returns the child node obtained by
> of_get_child_by_name(), which holds a reference. rsnd_dma_of_path()
> only tests that node and never drops the reference, so every DMA path
> setup leaks the SSIU node.
>
> Put the node after the SSIU branch has used it.
>
> Fixes: 4e7788fb8018 ("ASoC: rsnd: add SSIU BUSIF support")
> Signed-off-by: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
> ---
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
Thank you for your help !!
Best regards
---
Kuninori Morimoto