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] Fix exit path from DOM0_CREATEDOMAIN, which I broke earl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix exit path from DOM0_CREATEDOMAIN, which I broke earlier
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Jul 2005 05:10:09 -0400
Delivery-date: Fri, 15 Jul 2005 09:13:23 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID e8b48f3a2843e79680147926fbe4ba94cce68589
# Parent  ce4b630067bb3544bdf3df2e84a451048e97e559

Fix exit path from DOM0_CREATEDOMAIN, which I broke earlier
today.

diff -r ce4b630067bb -r e8b48f3a2843 xen/common/dom0_ops.c
--- a/xen/common/dom0_ops.c     Fri Jul 15 08:50:48 2005
+++ b/xen/common/dom0_ops.c     Fri Jul 15 09:09:57 2005
@@ -215,14 +215,16 @@
                 pro = i;
 
         ret = -ENOMEM;
-        if ( (d = do_createdomain(dom, pro)) != NULL )
-            ret = 0;
-        
+        if ( (d = do_createdomain(dom, pro)) == NULL )
+            goto alloc_out;
+
+        ret = 0;
+
+        op->u.createdomain.domain = d->domain_id;
+        copy_to_user(u_dom0_op, op, sizeof(*op));
+
     alloc_out:
         spin_unlock(&alloc_lock);
-
-        op->u.createdomain.domain = d->domain_id;
-        copy_to_user(u_dom0_op, op, sizeof(*op));
     }
     break;
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix exit path from DOM0_CREATEDOMAIN, which I broke earlier, Xen patchbot -unstable <=