From: Ingo Molnar Date: Mon, 7 May 2012 17:19:56 +0000 (+0200) Subject: x86/apic: Fix UP boot crash X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9438ef7f4ea73d5430a330fc206f97826eb9fb16;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git x86/apic: Fix UP boot crash Commit 31b3c9d72340 ("xen/x86: Implement x86_apic_ops") implemented this: ... without considering that on UP the function pointer might be NULL. Cc: Suresh Siddha Cc: Konrad Rzeszutek Wilk Link: http://lkml.kernel.org/n/tip-3pfty0ml4yp62phbkchichh0@git.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 8526317c5f0b..7e67c5a71061 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -1012,7 +1012,8 @@ void __init setup_arch(char **cmdline_p) init_cpu_to_node(); init_apic_mappings(); - x86_io_apic_ops.init(); + if (x86_io_apic_ops.init) + x86_io_apic_ops.init(); kvm_guest_init();