[PATCH 5/5] ASoC: rsnd: fix SSIU node reference leak in rsnd_dma_of_path

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Sun Nov 8 18:03:28 PST 2026


Hi

> From: Shao Mingyin <shao.mingyin at zte.com.cn>
> 
> 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 at zte.com.cn>
> ---

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

Thank you for your help !!

Best regards
---
Kuninori Morimoto



More information about the Linux-rockchip mailing list