]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86: use zalloc_cpumask_var for mce_dev_initialized
authorYinghai Lu <yinghai@kernel.org>
Wed, 17 Jun 2009 23:21:33 +0000 (16:21 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 18 Jun 2009 04:47:18 +0000 (21:47 -0700)
We need a cleared cpu_mask to record if mce is initialized, especially
when MAXSMP is used.

used zalloc_... instead

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: stable@kernel.org
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/mcheck/mce.c

index 5aac9e4dd136caf4df2aed24e3eace9f0cfcfa19..c2fb70d0286ffe9dd613b51b51f6792ce535cc4a 100644 (file)
@@ -1969,7 +1969,7 @@ static __init int mce_init_device(void)
        if (!mce_available(&boot_cpu_data))
                return -EIO;
 
-       alloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL);
+       zalloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL);
 
        err = mce_init_banks();
        if (err)