ia64/xen-unstable

changeset 15692:cc83df4c96d6

[IA64] Fix parameter check in do_hvm_op()

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
author Alex Williamson <alex.williamson@hp.com>
date Mon Aug 06 21:40:47 2007 -0600 (2007-08-06)
parents 90c830835ec1
children 87a72ba32301
files xen/arch/ia64/vmx/vmx_hypercall.c
line diff
     1.1 --- a/xen/arch/ia64/vmx/vmx_hypercall.c	Fri Aug 03 10:44:39 2007 -0600
     1.2 +++ b/xen/arch/ia64/vmx/vmx_hypercall.c	Mon Aug 06 21:40:47 2007 -0600
     1.3 @@ -118,7 +118,7 @@ do_hvm_op(unsigned long op, XEN_GUEST_HA
     1.4          if (copy_from_guest(&a, arg, 1))
     1.5              return -EFAULT;
     1.6  
     1.7 -        if (a.index > HVM_NR_PARAMS)
     1.8 +        if (a.index >= HVM_NR_PARAMS)
     1.9              return -EINVAL;
    1.10  
    1.11          if (a.domid == DOMID_SELF) {