ASoC: topology: free created components in tplg load error
authorBard liao <yung-chuan.liao@linux.intel.com>
Sun, 17 Feb 2019 13:23:47 +0000 (21:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:09:50 +0000 (20:09 +0100)
commit90fc2f95c41819f33bbc95eba714df41f46280d1
tree9b5d212bd9179f4649f6e27290668e827d2022b9
parentedd7b6b9be979d8c4b0cdb3a369b636d7d397e75
ASoC: topology: free created components in tplg load error

[ Upstream commit 304017d31df36fb61eb2ed3ebf65fb6870b3c731 ]

Topology resources are no longer needed if any element failed to load.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-topology.c