From: Oleg Matcovschi <oleg.matcovschi@ti.com>
To: linux-omap@vger.kernel.org, alsa-devel@alsa-project.org
Cc: peter.ujfalusi@ti.com, jarkko.nikula@bitmer.com, lrg@ti.com,
broonie@opensource.wolfsonmicro.com, perex@perex.cz,
tiwai@suse.de, Oleg Matcovschi <oleg.matcovschi@ti.com>
Subject: [PATCH v2] ASoC: omap-pcm: Free dma buffers in case of error.
Date: Tue, 24 Apr 2012 19:02:02 -0700 [thread overview]
Message-ID: <1335319322-22336-1-git-send-email-oleg.matcovschi@ti.com> (raw)
Change-Id: I4ba9de0de4681332539246ccc5e11a7a8fb32e79
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
---
v1:
initial revision
v2:
resending patch including maintainers
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
next reply other threads:[~2012-04-25 2:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-25 2:02 Oleg Matcovschi [this message]
2012-04-25 6:25 ` [PATCH v2] ASoC: omap-pcm: Free dma buffers in case of error Jarkko Nikula
2012-04-25 8:09 ` Mark Brown
2012-04-25 8:55 ` Peter Ujfalusi
2012-04-25 16:18 ` Liam Girdwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1335319322-22336-1-git-send-email-oleg.matcovschi@ti.com \
--to=oleg.matcovschi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=jarkko.nikula@bitmer.com \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@ti.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@ti.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).