]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Free card DAPM context on snd_soc_instantiate_card() error path
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 8 Jul 2015 20:14:48 +0000 (22:14 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 8 Jul 2015 21:16:51 +0000 (22:16 +0100)
commit1d5c27fe471ef537c06f5a6d874d4688193aca8a
tree68319ea9b5d9c5383618e7431588b0d33cbd70e4
parent29fb7a937be881bc373af3c9876dd94e4bc23370
ASoC: Free card DAPM context on snd_soc_instantiate_card() error path

Make sure the to free the card DAPM context if snd_soc_instantiate_card()
fails, otherwise the memory allocated for the DAPM widgets is leaked.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c