WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] pass-through: drop lock before calling xf

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] pass-through: drop lock before calling xfree() on error path
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 03 Feb 2009 20:50:55 -0800
Delivery-date: Tue, 03 Feb 2009 20:51:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1233314035 0
# Node ID e1135b40e783e965ed4eccfd8e983e9f3f4259e8
# Parent  102576868e8d2b4a7835c229bd3ff57dec4b96b0
pass-through: drop lock before calling xfree() on error path

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/drivers/passthrough/io.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 102576868e8d -r e1135b40e783 xen/drivers/passthrough/io.c
--- a/xen/drivers/passthrough/io.c      Fri Jan 30 11:13:32 2009 +0000
+++ b/xen/drivers/passthrough/io.c      Fri Jan 30 11:13:55 2009 +0000
@@ -87,8 +87,8 @@ int pt_irq_create_bind_vtd(
 
         if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 )
         {
+            spin_unlock(&d->event_lock);
             xfree(hvm_irq_dpci);
-            spin_unlock(&d->event_lock);
             return -EINVAL;
         }
     }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] pass-through: drop lock before calling xfree() on error path, Xen patchbot-unstable <=