diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-06-06 14:51:36 -0700 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-06-09 22:30:27 +0930 |
commit | eaa958402ea40851097d051f52ba1bb7a885efe9 (patch) | |
tree | 9187f59ff0ee6ac138b5c81a2212bc10f46d04a5 /drivers/acpi | |
parent | 0281b5dc0350cbf6dd21ed558a33cccce77abc02 (diff) | |
download | op-kernel-dev-eaa958402ea40851097d051f52ba1bb7a885efe9.zip op-kernel-dev-eaa958402ea40851097d051f52ba1bb7a885efe9.tar.gz |
cpumask: alloc zeroed cpumask for static cpumask_var_ts
These are defined as static cpumask_var_t so if MAXSMP is not used,
they are cleared already. Avoid surprises when MAXSMP is enabled.
Signed-off-by: Yinghai Lu <yinghai.lu@kernel.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/processor_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 45ad328..23f0fb8 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -844,7 +844,7 @@ static int acpi_processor_add(struct acpi_device *device) if (!pr) return -ENOMEM; - if (!alloc_cpumask_var(&pr->throttling.shared_cpu_map, GFP_KERNEL)) { + if (!zalloc_cpumask_var(&pr->throttling.shared_cpu_map, GFP_KERNEL)) { kfree(pr); return -ENOMEM; } |