diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-06-17 19:21:33 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-18 00:47:18 -0400 |
commit | e92fae064ae42b2a4a77646f7655bca4c87bb1eb (patch) | |
tree | 70dd8ae1c7408cc40603e3934b56ae527b2afdd1 /arch/x86 | |
parent | 74b602c7147212a7495879ec23fe6c2d3b470e06 (diff) |
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/x86')
-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) | |||
1969 | if (!mce_available(&boot_cpu_data)) | 1969 | if (!mce_available(&boot_cpu_data)) |
1970 | return -EIO; | 1970 | return -EIO; |
1971 | 1971 | ||
1972 | alloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL); | 1972 | zalloc_cpumask_var(&mce_dev_initialized, GFP_KERNEL); |
1973 | 1973 | ||
1974 | err = mce_init_banks(); | 1974 | err = mce_init_banks(); |
1975 | if (err) | 1975 | if (err) |