Skip to content

Commit

Permalink
x86: avoid early crash in disable_local_APIC()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Jan 15, 2009
1 parent 5cca0cf commit 4a13ad0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/*
Expand Down

0 comments on commit 4a13ad0

Please sign in to comment.