Commit 13095c37 authored by Mark Brown's avatar Mark Brown Committed by Takashi Iwai
Browse files

ALSA: Ensure PXA runtime data is initialised



The rest of the code relies on the runtime data being zero initialised
so we need to use kzalloc() to allocate it.

Reported-by: default avatarOliver Ford <ipaqlinux@oliford.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e78521f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -194,7 +194,7 @@ int __pxa2xx_pcm_open(struct snd_pcm_substream *substream)
		goto out;
		goto out;


	ret = -ENOMEM;
	ret = -ENOMEM;
	rtd = kmalloc(sizeof(*rtd), GFP_KERNEL);
	rtd = kzalloc(sizeof(*rtd), GFP_KERNEL);
	if (!rtd)
	if (!rtd)
		goto out;
		goto out;
	rtd->dma_desc_array =
	rtd->dma_desc_array =