ASoC: topology: Fix bugs of freeing soc topology.
PATCH v2 1/1 ASoC: topology: Fix bugs of freeing soc topology.
From: Yan Wang <[email protected]>
In snd_soc_tplg_component_remove(), it should compare index and not dobj->index with SND_SOC_TPLG_INDEX_ALL for removing all topology objects.
Signed-off-by Yan Wang <[email protected]>
Signed-off-by Liam Girdwood <[email protected]>
---
Notes:
Sign-off added since V1.
sound/soc/soc-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-topology.c +1 -1
@@ -2563,7 +2563,7 @@ int snd_soc_tplg_component_remove(struct snd_soc_component *comp, u32 index)/* match index */ if (dobj->index != index && - dobj->index !=SND_SOC_TPLG_INDEX_ALL ) + index !=SND_SOC_TPLG_INDEX_ALL )continue ;switch (dobj->type) {
Signature · 1 line
2.14.1