aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2005-01-03 13:19:17 +0100
committerJaroslav Kysela <perex@suse.cz>2005-01-03 13:19:17 +0100
commitd137aed366af382949dbe5afca682c7d3e400090 (patch)
tree847e7a4076dddc14ea9a191895717d2742812855 /sound
parent392c48e825718bb15d421613971714b6f976bbc2 (diff)
downloadhistory-d137aed366af382949dbe5afca682c7d3e400090.tar.gz
[ALSA] Fix memory corruption
Digigram VX core Fixed the memory corruption by the wrong sized kmalloc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/drivers/vx/vx_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c
index a4d72534bafde2..e7c831424cbfb5 100644
--- a/sound/drivers/vx/vx_core.c
+++ b/sound/drivers/vx/vx_core.c
@@ -734,7 +734,7 @@ vx_core_t *snd_vx_create(snd_card_t *card, struct snd_vx_hardware *hw,
snd_assert(card && hw && ops, return NULL);
- chip = kcalloc(1, sizeof(chip) + extra_size, GFP_KERNEL);
+ chip = kcalloc(1, sizeof(*chip) + extra_size, GFP_KERNEL);
if (! chip) {
snd_printk(KERN_ERR "vx_core: no memory\n");
return NULL;