Parcourir la source

Merge branch 'for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc into fix/asoc

Takashi Iwai il y a 13 ans
Parent
commit
b339583c57
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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:
 out:
+	/* free preallocated buffers in case of error */
+	if (ret)
+		omap_pcm_free_dma_buffers(pcm);
+
 	return ret;
 	return ret;
 }
 }