commit | 6b9f3e65282b3bd7ed77e7b2b1edfe7cfed48115 | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Tue Dec 03 14:26:33 2013 -0700 |
committer | Mark Brown <broonie@linaro.org> | Mon Dec 09 18:43:06 2013 +0000 |
tree | 34c6cb37ce036b9f7af4e3479a2f9b9e4dab147e | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae [diff] |
ASoC: don't leak on error in snd_dmaengine_pcm_register If snd_dmaengine_pcm_register()'s call to snd_soc_add_platform() fails, all objects allocated during registration are leaked. Fix this by adding error-handling code. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>