commit | a08c4743ed5b861c4fa3d75be00da7106c926296 | [log] [tgz] |
---|---|---|
author | Jan Beulich <jbeulich@novell.com> | Wed Jan 14 12:28:51 2009 +0000 |
committer | Ingo Molnar <mingo@elte.hu> | Thu Jan 15 12:04:40 2009 +0100 |
tree | 7f9cc2a8e1edd30c499f59d90363303681ab3530 | |
parent | f11826385b63566d98c02d35f592232ee77cd791 [diff] [blame] |
x86: avoid early crash in disable_local_APIC() E.g. when called due to an early panic. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index c3dd64f..38d6aab 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c
@@ -895,6 +895,10 @@ { unsigned int value; + /* APIC hasn't been mapped yet */ + if (!apic_phys) + return; + clear_local_APIC(); /*