Skip to contentSkip to conversation

x86/MSI: fix dump_msi() after c/s 24068:6928172f7ded

PATCH New Jan Beulich 1 participant 1 message Nov 8, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/MSI: fix dump_msi() after c/s 24068:6928172f7ded

The function must not blindly take the lock on IRQ descriptors.

xen/arch/x86/msi.c +3 -0
@@ -1076,6 +1076,9 @@ static void dump_msi(unsigned char key)
         unsigned long flags;
         char type;
 
+        if ( !irq_desc_initialized(desc) )
+            continue;
+
         spin_lock_irqsave(&desc->lock, flags);
 
         entry = desc->msi_desc;

x86/MSI: fix dump_msi() after c/s 24068:6928172f7ded

The function must not blindly take the lock on IRQ descriptors.

xen/arch/x86/msi.c +3 -0
@@ -1076,6 +1076,9 @@ static void dump_msi(unsigned char key)
         unsigned long flags;
         char type;
 
+        if ( !irq_desc_initialized(desc) )
+            continue;
+
         spin_lock_irqsave(&desc->lock, flags);
 
         entry = desc->msi_desc;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel