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

[Xen-changelog] [xen-unstable] [IA64] Fix parameter check in do_hvm_op()



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1186458047 21600
# Node ID cc83df4c96d60aad1508975b70b902f7deb9e635
# Parent  90c830835ec1111c333c501a173c78a584e6d048
[IA64] Fix parameter check in do_hvm_op()

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@xxxxxxxxxxxxxx>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@xxxxxxxxxxxxxx>
---
 xen/arch/ia64/vmx/vmx_hypercall.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 90c830835ec1 -r cc83df4c96d6 xen/arch/ia64/vmx/vmx_hypercall.c
--- a/xen/arch/ia64/vmx/vmx_hypercall.c Fri Aug 03 10:44:39 2007 -0600
+++ b/xen/arch/ia64/vmx/vmx_hypercall.c Mon Aug 06 21:40:47 2007 -0600
@@ -118,7 +118,7 @@ do_hvm_op(unsigned long op, XEN_GUEST_HA
         if (copy_from_guest(&a, arg, 1))
             return -EFAULT;
 
-        if (a.index > HVM_NR_PARAMS)
+        if (a.index >= HVM_NR_PARAMS)
             return -EINVAL;
 
         if (a.domid == DOMID_SELF) {

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