aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/nm256/nm256.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/nm256/nm256.c')
-rw-r--r--sound/pci/nm256/nm256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c
index 7efb838d18a6..06d13e717114 100644
--- a/sound/pci/nm256/nm256.c
+++ b/sound/pci/nm256/nm256.c
@@ -1302,8 +1302,8 @@ snd_nm256_mixer(struct nm256 *chip)
1302 .read = snd_nm256_ac97_read, 1302 .read = snd_nm256_ac97_read,
1303 }; 1303 };
1304 1304
1305 chip->ac97_regs = kcalloc(sizeof(short), 1305 chip->ac97_regs = kcalloc(ARRAY_SIZE(nm256_ac97_init_val),
1306 ARRAY_SIZE(nm256_ac97_init_val), GFP_KERNEL); 1306 sizeof(short), GFP_KERNEL);
1307 if (! chip->ac97_regs) 1307 if (! chip->ac97_regs)
1308 return -ENOMEM; 1308 return -ENOMEM;
1309 1309