mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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: Oliver Ford <ipaqlinux@oliford.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e78521f321
commit
13095c37b2
1 changed files with 1 additions and 1 deletions
|
@ -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 =
|
||||||
|
|
Loading…
Reference in a new issue