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

[Xen-changelog] [xen-unstable] [IA64] Bug fix: DOM0_GETMEMLIST: do not return -EINVAL in case of success!



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 49cea8b66d4ac07ecb6a5ce2ca9361dc32fc53ac
# Parent  2b815d9acdea512cf50e7fbb3c5490590e85dbd5
[IA64] Bug fix: DOM0_GETMEMLIST: do not return -EINVAL in case of success!

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>
---
 xen/arch/ia64/xen/dom0_ops.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff -r 2b815d9acdea -r 49cea8b66d4a xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Wed Jul 05 20:11:37 2006 -0600
+++ b/xen/arch/ia64/xen/dom0_ops.c      Thu Jul 06 08:18:50 2006 -0600
@@ -164,9 +164,10 @@ long arch_do_dom0_op(dom0_op_t *op, XEN_
         unsigned long nr_pages = op->u.getmemlist.max_pfns & 0xffffffff;
         unsigned long mfn;
 
-        ret = -EINVAL;
-        if ( d == NULL )
-            break;
+        if ( d == NULL ) {
+            ret = -EINVAL;
+            break;
+        }
         for (i = 0 ; i < nr_pages ; i++) {
             pte_t *pte;
 

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