From: Jan Beulich Date: Wed, 14 Jan 2009 12:28:51 +0000 (+0000) Subject: x86: avoid early crash in disable_local_APIC() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a08c4743ed5b861c4fa3d75be00da7106c926296;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86: avoid early crash in disable_local_APIC() E.g. when called due to an early panic. Signed-off-by: Jan Beulich Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index c3dd64fabcf3..38d6aab2358d 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c @@ -895,6 +895,10 @@ void disable_local_APIC(void) { unsigned int value; + /* APIC hasn't been mapped yet */ + if (!apic_phys) + return; + clear_local_APIC(); /*