Skip to content
Snippets Groups Projects
Commit fad9365b authored by Oleg Matcovschi's avatar Oleg Matcovschi Committed by Liam Girdwood
Browse files

ASoC: omap-pcm: Free dma buffers in case of error.

parent 1a38336b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment