mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reported-and-tested-by: Anton Blanchard <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
5aaa0b7a2e
commit
2ea45800d8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue