Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit feb12f0c authored by Yan Wang's avatar Yan Wang Committed by Mark Brown
Browse files

ASoC: topology: Fix bugs of freeing soc topology



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: default avatarYan Wang <yan.wang@linux.intel.com>
Signed-off-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent dc29f581
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2580,7 +2580,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) {