summaryrefslogtreecommitdiffstats
path: root/sound/spi
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-12-03 14:26:33 -0700
committerMark Brown <broonie@linaro.org>2013-12-09 18:43:06 +0000
commit6b9f3e65282b3bd7ed77e7b2b1edfe7cfed48115 (patch)
tree34c6cb37ce036b9f7af4e3479a2f9b9e4dab147e /sound/spi
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
downloadlinux-6b9f3e65282b3bd7ed77e7b2b1edfe7cfed48115.tar.bz2
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>
Diffstat (limited to 'sound/spi')
0 files changed, 0 insertions, 0 deletions