Re: [PATCH] ASoC: audio-graph-card2: Release multi-link ports references
From: Kuninori Morimoto
Date: Thu Nov 19 2026 - 18:10:36 EST
Hi
> port_to_ports() returns a referenced ports node. graph_counter() drops
> the pointer after counting the ports, while graph_parse_node_multi_nm()
> compares it with the expected codec ports node and discards it. The
> references remain held after card parsing, including across reprobes.
>
> Use the existing device_node cleanup pattern at both call sites, so
> the temporary references are released when their scopes end.
>
> Fixes: e2de6808df4a ("ASoC: audio-graph-card2: add CPU:Codec = N:M support")
> Signed-off-by: Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx>
> ---
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
Thank you for your help !!
Best regards
---
Kuninori Morimoto