]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit159fd737e9a21fb799502913370a276f196e9f7c
treeb896db25da65d4185771b2686e9a215da3af07a1
parent27e49b809e5f83c680acaa807fc01938e49734a5
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