Commit 05e40760 authored by Daniel Kiper's avatar Daniel Kiper Committed by Ingo Molnar

x86, apic: Fix apic=debug boot crash

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: default avatarDaniel 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: default avatarIngo Molnar <mingo@elte.hu>
parent d7c53c9e
...@@ -1728,6 +1728,8 @@ __apicdebuginit(void) print_IO_APIC(void) ...@@ -1728,6 +1728,8 @@ __apicdebuginit(void) print_IO_APIC(void)
struct irq_pin_list *entry; struct irq_pin_list *entry;
cfg = desc->chip_data; cfg = desc->chip_data;
if (!cfg)
continue;
entry = cfg->irq_2_pin; entry = cfg->irq_2_pin;
if (!entry) if (!entry)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment