X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fpci%2Fnm256%2Fnm256.c;h=06d13e7171148d261fdeeccd21563da3ef59d577;hb=b17b3d479c4c43c3a980ee553c3be3ca456523de;hp=7efb838d18a6b3e78c0b5ceedeccc85887187b2c;hpb=064922a805ec7aadfafdd27aa6b4908d737c3c1d;p=linux-2.6 diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 7efb838d18..06d13e7171 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c @@ -1302,8 +1302,8 @@ snd_nm256_mixer(struct nm256 *chip) .read = snd_nm256_ac97_read, }; - chip->ac97_regs = kcalloc(sizeof(short), - ARRAY_SIZE(nm256_ac97_init_val), GFP_KERNEL); + chip->ac97_regs = kcalloc(ARRAY_SIZE(nm256_ac97_init_val), + sizeof(short), GFP_KERNEL); if (! chip->ac97_regs) return -ENOMEM;