]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix snd_soc_instantiate_card error path
authorAxel Lin <axel.lin@gmail.com>
Tue, 7 Dec 2010 08:12:29 +0000 (16:12 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Dec 2010 15:27:14 +0000 (15:27 +0000)
commitd6d48ccd4197136715df6c3aab70c8411119def3
tree7effe0a7676707ab4a76bb65eab971e7836fd925
parent6b27d3999b6273ce48c15d6f2d9122e7512b507d
ASoC: Fix snd_soc_instantiate_card error path

Properly free the resources in the case of snd_card_register failure
and soc_register_ac97_dai_link failure.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c