diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-10-22 13:27:49 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-10-22 17:22:01 +0200 |
commit | 13095c37b29b90ec96070cb63400a79737b4a185 (patch) | |
tree | 3ff6ff0f559403c3e2da5219012c1f521e2419b1 /sound | |
parent | e78521f3212d5d3931442819cbf0910fe1b28beb (diff) | |
download | kernel_goldelico_gta04-13095c37b29b90ec96070cb63400a79737b4a185.zip kernel_goldelico_gta04-13095c37b29b90ec96070cb63400a79737b4a185.tar.gz kernel_goldelico_gta04-13095c37b29b90ec96070cb63400a79737b4a185.tar.bz2 |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/arm/pxa2xx-pcm-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c index 1c93eb7..75a0d74 100644 --- a/sound/arm/pxa2xx-pcm-lib.c +++ b/sound/arm/pxa2xx-pcm-lib.c @@ -194,7 +194,7 @@ int __pxa2xx_pcm_open(struct snd_pcm_substream *substream) goto out; ret = -ENOMEM; - rtd = kmalloc(sizeof(*rtd), GFP_KERNEL); + rtd = kzalloc(sizeof(*rtd), GFP_KERNEL); if (!rtd) goto out; rtd->dma_desc_array = |