ASoC: topology: Fix bugs of freeing soc topology
authorYan Wang <yan.wang@linux.intel.com>
Mon, 26 Mar 2018 15:48:00 +0000 (16:48 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 17 Apr 2018 11:27:24 +0000 (12:27 +0100)
commitfeb12f0cd8d7b1e8df2e6fce19fc9a026a468cc2
tree9959d3141c997fe309a0cd53f8e6f9e9401d814e
parentdc29f581fa9d5567c3a01ecfdd7f16b2e613c7fb
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: 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>
sound/soc/soc-topology.c