Browse Source

Merge branch 'fix/asoc' into for-linus

Takashi Iwai 13 years ago
parent
commit
e9e7183fd2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      sound/soc/omap/omap-pcm.c

+ 4 - 0
sound/soc/omap/omap-pcm.c

@@ -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;
 }