ia64/xen-unstable

changeset 10663:49cea8b66d4a

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

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Thu Jul 06 08:18:50 2006 -0600 (2006-07-06)
parents 2b815d9acdea
children 3041cac985d6
files xen/arch/ia64/xen/dom0_ops.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom0_ops.c	Wed Jul 05 20:11:37 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/dom0_ops.c	Thu Jul 06 08:18:50 2006 -0600
     1.3 @@ -164,9 +164,10 @@ long arch_do_dom0_op(dom0_op_t *op, XEN_
     1.4          unsigned long nr_pages = op->u.getmemlist.max_pfns & 0xffffffff;
     1.5          unsigned long mfn;
     1.6  
     1.7 -        ret = -EINVAL;
     1.8 -        if ( d == NULL )
     1.9 +        if ( d == NULL ) {
    1.10 +            ret = -EINVAL;
    1.11              break;
    1.12 +        }
    1.13          for (i = 0 ; i < nr_pages ; i++) {
    1.14              pte_t *pte;
    1.15