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

[Xen-changelog] [xen-unstable] xen: get_free_pirq: make sure that the returned pirq is allocated



# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1314800629 -3600
# Node ID 4a4882df5649dc65775b37f757a6aa6b14704f4a
# Parent  2297b90a6a7bec2655672f4e775664046be0b3c4
xen: get_free_pirq: make sure that the returned pirq is allocated

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---


diff -r 2297b90a6a7b -r 4a4882df5649 xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Wed Aug 31 15:23:34 2011 +0100
+++ b/xen/arch/x86/irq.c        Wed Aug 31 15:23:49 2011 +0100
@@ -1587,13 +1587,19 @@
     {
         for ( i = 16; i < nr_irqs_gsi; i++ )
             if ( is_free_pirq(d, pirq_info(d, i)) )
+            {
+                pirq_get_info(d, i);
                 return i;
+            }
     }
     else
     {
         for ( i = d->nr_pirqs - 1; i >= nr_irqs_gsi; i-- )
             if ( is_free_pirq(d, pirq_info(d, i)) )
+            {
+                pirq_get_info(d, i);
                 return i;
+            }
     }
 
     return -ENOSPC;

_______________________________________________
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®.