projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e78521f
)
ALSA: Ensure PXA runtime data is initialised
author
Mark Brown
<
[email protected]
>
Wed, 22 Oct 2008 12:27:49 +0000
(13:27 +0100)
committer
Takashi Iwai
<
[email protected]
>
Wed, 22 Oct 2008 15:22:01 +0000
(17:22 +0200)
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 <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
sound/arm/pxa2xx-pcm-lib.c
patch
|
blob
|
history
diff --git
a/sound/arm/pxa2xx-pcm-lib.c
b/sound/arm/pxa2xx-pcm-lib.c
index 1c93eb77cb99fe75856055f04d74d1e3c8007e81..75a0d746fb60ff50a8eccdefab76e67c380d3e9d 100644
(file)
--- 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 = k
m
alloc(sizeof(*rtd), GFP_KERNEL);
+ rtd = k
z
alloc(sizeof(*rtd), GFP_KERNEL);
if (!rtd)
goto out;
rtd->dma_desc_array =