Skip to content

Commit fad9365

Browse files
Oleg Matcovschilrg-ti
authored andcommitted
ASoC: omap-pcm: Free dma buffers in case of error.
Signed-off-by: Oleg Matcovschi <[email protected]> Acked-by: Peter Ujfalusi <[email protected]> Acked-by: Jarkko Nikula <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Liam Girdwood <[email protected]>
1 parent 1a38336 commit fad9365

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/soc/omap/omap-pcm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
401401
}
402402

403403
out:
404+
/* free preallocated buffers in case of error */
405+
if (ret)
406+
omap_pcm_free_dma_buffers(pcm);
407+
404408
return ret;
405409
}
406410

0 commit comments

Comments
 (0)