ASoC: Fix resource leak if soc_register_ac97_dai_link failed
authorAxel Lin <axel.lin@gmail.com>
Tue, 7 Dec 2010 12:56:30 +0000 (20:56 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Dec 2010 14:51:15 +0000 (14:51 +0000)
commit681e36924788aeea2717c07cc42a21c9c86d7559
treeb896db25da65d4185771b2686e9a215da3af07a1
parent1dcb4f38e5bc28dfce0f8c7eef184a090b03bfc7
ASoC: Fix resource leak if soc_register_ac97_dai_link failed

Properly free the resources in the case of soc_register_ac97_dai_link failure.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c