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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user