Skip to content

Commit 12274e9

Browse files
Yinghai Lutorvalds
authored andcommitted
x86: use zalloc_cpumask_var in arch_early_irq_init
So we make sure MAXSMP gets a cleared cpumask Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e14112d commit 12274e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/apic/io_apic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ int __init arch_early_irq_init(void)
187187
for (i = 0; i < count; i++) {
188188
desc = irq_to_desc(i);
189189
desc->chip_data = &cfg[i];
190-
alloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node);
191-
alloc_cpumask_var_node(&cfg[i].old_domain, GFP_NOWAIT, node);
190+
zalloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node);
191+
zalloc_cpumask_var_node(&cfg[i].old_domain, GFP_NOWAIT, node);
192192
if (i < NR_IRQS_LEGACY)
193193
cpumask_setall(cfg[i].domain);
194194
}

0 commit comments

Comments
 (0)