[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86/MSI: fix dump_msi() after c/s 24068:6928172f7ded



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1320831380 -3600
# Node ID 33215c3868a181c17dda1d0629d767d5b9c8a0f0
# Parent  fb1b32c9d03dfa5af4014688556a97805b118ac9
x86/MSI: fix dump_msi() after c/s 24068:6928172f7ded

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

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r fb1b32c9d03d -r 33215c3868a1 xen/arch/x86/msi.c
--- a/xen/arch/x86/msi.c        Tue Nov 08 19:41:47 2011 +0000
+++ b/xen/arch/x86/msi.c        Wed Nov 09 10:36:20 2011 +0100
@@ -1076,6 +1076,9 @@
         unsigned long flags;
         char type;
 
+        if ( !irq_desc_initialized(desc) )
+            continue;
+
         spin_lock_irqsave(&desc->lock, flags);
 
         entry = desc->msi_desc;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.