1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-10-29 16:25:07 +03:00

Fix NUMA topology error handling (beth kon)

This commit is contained in:
Daniel P. Berrange
2007-10-05 01:08:17 +00:00
parent d08b12c1a6
commit 77cf0390e4
2 changed files with 12 additions and 7 deletions

View File

@@ -2006,15 +2006,15 @@ sexpr_to_xend_topology_xml(virConnectPtr conn, struct sexpr *root, virBufferPtr
goto error;
}
for (i=start; i<=finish && nodeCpuCount<numCpus; i++) {
for (i=start; i<=finish; i++) {
nodeCpuCount++;
if (nodeCpuCount > numCpus) {
virXendError(conn, VIR_ERR_XEN_CALL,
"conflicting cpu counts");
goto error;
}
*(cpuIdsPtr++) = i;
cellCpuCount++;
nodeCpuCount++;
}
if (nodeCpuCount > numCpus) {
virXendError(conn, VIR_ERR_XEN_CALL,
"conflicting cpu counts");
goto error;
}
offset += len;
next = *(offset);