Skip to content

Commit

Permalink
x86, apic: Fix apic=debug boot crash
Browse files Browse the repository at this point in the history
Fix a boot crash when apic=debug is used and the APIC is
not properly initialized.

This issue appears during Xen Dom0 kernel boot but the
fix is generic and the crash could occur on real hardware
as well.

Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
Cc: xen-devel@lists.xensource.com
Cc: konrad.wilk@oracle.com
Cc: jeremy@goop.org
Cc: <stable@kernel.org> # .35.x, .34.x, .33.x, .32.x
LKML-Reference: <20100819224616.GB9967@router-fw-old.local.net-space.pl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Daniel Kiper authored and Ingo Molnar committed Aug 20, 2010
1 parent d7c53c9 commit 05e4076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1728,6 +1728,8 @@ __apicdebuginit(void) print_IO_APIC(void)
struct irq_pin_list *entry;

cfg = desc->chip_data;
if (!cfg)
continue;
entry = cfg->irq_2_pin;
if (!entry)
continue;
Expand Down

0 comments on commit 05e4076

Please sign in to comment.