From: Richard Zhao Date: Tue, 18 Sep 2012 09:20:06 +0000 (+0800) Subject: ASoC: imx-pcm-dma: open function failed when snd_dmaengine_pcm_open fail X-Git-Tag: v3.7-rc2~30^2~1^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f31e08e160d646952a5142e3f92f3fcdc645a09b;p=profile%2Fivi%2Fkernel-x86-ivi.git ASoC: imx-pcm-dma: open function failed when snd_dmaengine_pcm_open fail snd_imx_open should return error code returned by snd_dmaengine_pcm_open. Signed-off-by: Richard Zhao Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-pcm-dma.c b/sound/soc/fsl/imx-pcm-dma.c index a23505a..9a15bc4 100644 --- a/sound/soc/fsl/imx-pcm-dma.c +++ b/sound/soc/fsl/imx-pcm-dma.c @@ -120,7 +120,7 @@ static int snd_imx_open(struct snd_pcm_substream *substream) ret = snd_dmaengine_pcm_open(substream, filter, dma_data); if (ret) { kfree(dma_data); - return 0; + return ret; } snd_dmaengine_pcm_set_data(substream, dma_data);