aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index dd12c1c84a8f..df49ce87a300 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -350,6 +350,7 @@ cpumask_t *_node_to_cpumask_ptr(int node)
350 dump_stack(); 350 dump_stack();
351 return &cpu_online_map; 351 return &cpu_online_map;
352 } 352 }
353 BUG_ON(node >= nr_node_ids);
353 return &node_to_cpumask_map[node]; 354 return &node_to_cpumask_map[node];
354} 355}
355EXPORT_SYMBOL(_node_to_cpumask_ptr); 356EXPORT_SYMBOL(_node_to_cpumask_ptr);
@@ -365,6 +366,7 @@ cpumask_t node_to_cpumask(int node)
365 dump_stack(); 366 dump_stack();
366 return cpu_online_map; 367 return cpu_online_map;
367 } 368 }
369 BUG_ON(node >= nr_node_ids);
368 return node_to_cpumask_map[node]; 370 return node_to_cpumask_map[node];
369} 371}
370EXPORT_SYMBOL(node_to_cpumask); 372EXPORT_SYMBOL(node_to_cpumask);