git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: omap-pcm: Free dma buffers in case of error.
[pandora-kernel.git]
/
sound
/
soc
/
omap
/
omap-pcm.c
diff --git
a/sound/soc/omap/omap-pcm.c
b/sound/soc/omap/omap-pcm.c
index
6ede7dc
..
5ae68c0
100644
(file)
--- a/
sound/soc/omap/omap-pcm.c
+++ b/
sound/soc/omap/omap-pcm.c
@@
-402,6
+402,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;
}