From: Peter Zijlstra Date: Fri, 25 May 2012 07:26:43 +0000 (+0200) Subject: sched: Don't try allocating memory from offline nodes X-Git-Tag: v3.5-rc2~34^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ea45800d8e1c3c51c45a233d6bd6289a297a386;p=platform%2Fupstream%2Fkernel-adaptation-pc.git sched: Don't try allocating memory from offline nodes Allocators don't appreciate it when you try and allocate memory from offline nodes. Reported-and-tested-by: Tony Luck Reported-and-tested-by: Anton Blanchard Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-epfc1io9whb7o22bcujf31vn@git.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 75844a8..5573361 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6436,7 +6436,7 @@ static void sched_init_numa(void) return; for (j = 0; j < nr_node_ids; j++) { - struct cpumask *mask = kzalloc_node(cpumask_size(), GFP_KERNEL, j); + struct cpumask *mask = kzalloc(cpumask_size(), GFP_KERNEL); if (!mask) return;