ASoC: topology: Fix bugs of freeing soc topology
[ Upstream commit feb12f0cd8
]
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 <yan.wang@linux.intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
bd8acfd77d
Коммит
d5cf1ed8d3
|
@ -2571,7 +2571,7 @@ int snd_soc_tplg_component_remove(struct snd_soc_component *comp, u32 index)
|
||||||
|
|
||||||
/* match index */
|
/* match index */
|
||||||
if (dobj->index != index &&
|
if (dobj->index != index &&
|
||||||
dobj->index != SND_SOC_TPLG_INDEX_ALL)
|
index != SND_SOC_TPLG_INDEX_ALL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
switch (dobj->type) {
|
switch (dobj->type) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче