diff options
author | Oleg Matcovschi <oleg.matcovschi@ti.com> | 2012-04-25 02:02:02 (GMT) |
---|---|---|
committer | Liam Girdwood <lrg@ti.com> | 2012-05-04 11:09:28 (GMT) |
commit | fad9365bcc2a69ae16adc092e8ac192354980665 (patch) | |
tree | ba91112e49080400af70a4b94b4b2de1fb67e465 /sound/soc | |
parent | 1a38336b8611a04f0a624330c1f815421f4bf5f4 (diff) | |
download | linux-fsl-qoriq-fad9365bcc2a69ae16adc092e8ac192354980665.tar.xz |
ASoC: omap-pcm: Free dma buffers in case of error.
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index a59bd35..5a649da 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c @@ -401,6 +401,10 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd) } out: + /* free preallocated buffers in case of error */ + if (ret) + omap_pcm_free_dma_buffers(pcm); + return ret; } |