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

[Xen-devel] [PATCH] pass-through: drop lock before calling xfree() on error path



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

--- 2009-01-27.orig/xen/drivers/passthrough/io.c        2009-01-21 
15:16:31.000000000 +0100
+++ 2009-01-27/xen/drivers/passthrough/io.c     2009-01-30 08:59:27.000000000 
+0100
@@ -87,8 +87,8 @@ int pt_irq_create_bind_vtd(
 
         if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 )
         {
-            xfree(hvm_irq_dpci);
             spin_unlock(&d->event_lock);
+            xfree(hvm_irq_dpci);
             return -EINVAL;
         }
     }




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


 


Rackspace

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