ia64/xen-unstable
changeset 15823:5ee379a1f0d0
xend: Correct indexing in xc_cpu_to_node_t map.
Signed-off-by: Beth Kon <eak@us.ibm.com>
Signed-off-by: Beth Kon <eak@us.ibm.com>
author | kfraser@localhost.localdomain |
---|---|
date | Fri Aug 31 14:14:14 2007 +0100 (2007-08-31) |
parents | 2f13d0f2b07c |
children | ca0938180509 |
files | tools/python/xen/lowlevel/xc/xc.c |
line diff
1.1 --- a/tools/python/xen/lowlevel/xc/xc.c Fri Aug 31 14:11:15 2007 +0100 1.2 +++ b/tools/python/xen/lowlevel/xc/xc.c Fri Aug 31 14:14:14 2007 +0100 1.3 @@ -685,7 +685,7 @@ static PyObject *pyxc_physinfo(XcObject 1.4 char cpu_cap[128], *p=cpu_cap, *q=cpu_cap; 1.5 int i, j, max_cpu_id; 1.6 PyObject *ret_obj, *node_to_cpu_obj; 1.7 - xc_cpu_to_node_t map[MAX_CPU_ID]; 1.8 + xc_cpu_to_node_t map[MAX_CPU_ID + 1]; 1.9 1.10 set_xen_guest_handle(info.cpu_to_node, map); 1.11 info.max_cpu_id = MAX_CPU_ID;