mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: Correct indexing in xc_cpu_to_node_t map.
Signed-off-by: Beth Kon <eak@us.ibm.com>
This commit is contained in:
1 parent
9ef6233978
commit
399280a99d
1 file changed
+1
-1
@@ -685,7 +685,7 @@ static PyObject *pyxc_physinfo(XcObject *self)
|
||||
char cpu_cap[128], *p=cpu_cap, *q=cpu_cap;
|
||||
int i, j, max_cpu_id;
|
||||
PyObject *ret_obj, *node_to_cpu_obj;
|
||||
xc_cpu_to_node_t map[MAX_CPU_ID];
|
||||
xc_cpu_to_node_t map[MAX_CPU_ID + 1];
|
||||
|
||||
set_xen_guest_handle(info.cpu_to_node, map);
|
||||
info.max_cpu_id = MAX_CPU_ID;
|
||||
|
||||