Commit d137aed3 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Fix memory corruption

Digigram VX core
Fixed the memory corruption by the wrong sized kmalloc.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 392c48e8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment