x86: fix debug key 'i' handling with no IO-APICs
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Sep 2010 06:47:54 +0000 (07:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Sep 2010 06:47:54 +0000 (07:47 +0100)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/io_apic.c

index 46be3a239d93ed7f12b8d605b10dbfcb15818e5b..3b15c13e1f5206167faf65e37570d082de146d2a 100644 (file)
@@ -2463,6 +2463,9 @@ void dump_ioapic_irq_info(void)
     unsigned int irq, pin, printed = 0;
     unsigned long flags;
 
+    if ( !irq_2_pin )
+        return;
+
     for ( irq = 0; irq < nr_irqs_gsi; irq++ )
     {
         entry = &irq_2_pin[irq];