Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f5cd8fd authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86: add debug of invalid per_cpu map accesses



dont crash survivable situations.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent c49a4955
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -70,7 +70,8 @@ static inline int cpu_to_node(int cpu)
	if (x86_cpu_to_node_map_early_ptr) {
		printk("KERN_NOTICE cpu_to_node(%d): usage too early!\n",
			(int)cpu);
		BUG();
		dump_stack();
		return ((int *)x86_cpu_to_node_map_early_ptr)[cpu];
	}
#endif
	if (per_cpu_offset(cpu))