diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-06-18 01:21:33 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-18 06:47:18 +0200 |
commit | e92fae064ae42b2a4a77646f7655bca4c87bb1eb (patch) | |
tree | 70dd8ae1c7408cc40603e3934b56ae527b2afdd1 /arch | |
parent | x86: fix duplicated sysfs attribute (diff) | |
download | linux-e92fae064ae42b2a4a77646f7655bca4c87bb1eb.tar.xz linux-e92fae064ae42b2a4a77646f7655bca4c87bb1eb.zip |
x86: use zalloc_cpumask_var for mce_dev_initialized
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 5aac9e4dd136..c2fb70d0286f 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -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) |