ia64/xen-unstable

changeset 10451:59d4c1863330

[IA64] dom0vp machtophys fix argument check

fix argument check of dom0vp machtophys hypercall. use valid_mfn()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Fri Jun 23 15:26:01 2006 -0600 (2006-06-23)
parents 795d31772505
children fdf25330e4a6
files xen/arch/ia64/xen/dom0_ops.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom0_ops.c	Fri Jun 23 15:24:06 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/dom0_ops.c	Fri Jun 23 15:26:01 2006 -0600
     1.3 @@ -256,7 +256,7 @@ do_dom0vp_op(unsigned long cmd,
     1.4          }
     1.5          break;
     1.6      case IA64_DOM0VP_machtophys:
     1.7 -        if (max_page <= arg0) {
     1.8 +        if (!mfn_valid(arg0)) {
     1.9              ret = INVALID_M2P_ENTRY;
    1.10              break;
    1.11          }