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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:42 +0000 (04:02 +0900)
commitd5cf1ed8d3ae37a6115a0696a4885df1c777a9e9
treef3d6b51bfa3135d7f6fc326e4e838745fe3ae40f
parentbd8acfd77dd336afa8f22bb6f0ed24a7d479c355
ASoC: topology: Fix bugs of freeing soc topology

[ Upstream commit feb12f0cd8d7b1e8df2e6fce19fc9a026a468cc2 ]

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>
sound/soc/soc-topology.c