]> xenbits.xensource.com Git - xen.git/commitdiff
[IA64] xenitp: correctly size vcpu_ctx array
authorAlex Williamson <alex.williamson@hp.com>
Mon, 1 Oct 2007 15:59:24 +0000 (09:59 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Mon, 1 Oct 2007 15:59:24 +0000 (09:59 -0600)
vcpu_ctx[] array size should be MAX_VIRT_CPUS instead of 1.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
tools/debugger/xenitp/xenitp.c

index a203da8c0d1af01db6b420cb142a7223f9e5ae4e..bd7b2502584590735955abe2487f00609704112c 100644 (file)
@@ -931,7 +931,7 @@ unsigned char *parse_arg (unsigned char **buf)
     return res;
 }
 
-vcpu_guest_context_t vcpu_ctx[1];
+vcpu_guest_context_t vcpu_ctx[MAX_VIRT_CPUS];
 
 int vcpu_setcontext (int vcpu)
 {