All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: omap-pcm: Free dma buffers in case of error.
@ 2012-04-19  0:37 Oleg Matcovschi
  2012-04-19 16:00 ` Ujfalusi, Peter
  0 siblings, 1 reply; 5+ messages in thread
From: Oleg Matcovschi @ 2012-04-19  0:37 UTC (permalink / raw)
  To: linux-omap, alsa-devel; +Cc: Jarkko Nikula, Oleg Matcovschi

Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
---
 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 a2a464f..380a5bd 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -414,6 +414,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;
 }
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-23 12:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19  0:37 [PATCH] ASoC: omap-pcm: Free dma buffers in case of error Oleg Matcovschi
2012-04-19 16:00 ` Ujfalusi, Peter
2012-04-20 13:08   ` Mark Brown
2012-04-20 17:59     ` [alsa-devel] " Matcovschi, Oleg
2012-04-23 12:04       ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.