mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
* src/xml.c: patch from Beth Kon to fix a problem when the
cpuset parameter for numa uses cpu maxcpu-1 Daniel
This commit is contained in:
parent
c33b54df47
commit
028275d6da
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 5 11:11:45 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/xml.c: patch from Beth Kon to fix a problem when the
|
||||||
|
cpuset parameter for numa uses cpu maxcpu-1
|
||||||
|
|
||||||
Thu Nov 1 14:32:07 CET 2007 Daniel Veillard <veillard@redhat.com>
|
Thu Nov 1 14:32:07 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/xm_internal.c: patches from Masayuki Sunou to fix a problem
|
* src/xm_internal.c: patches from Masayuki Sunou to fix a problem
|
||||||
|
@ -126,7 +126,7 @@ parseCpuNumber(const char **str, int maxcpu)
|
|||||||
|
|
||||||
while ((*cur >= '0') && (*cur <= '9')) {
|
while ((*cur >= '0') && (*cur <= '9')) {
|
||||||
ret = ret * 10 + (*cur - '0');
|
ret = ret * 10 + (*cur - '0');
|
||||||
if (ret > maxcpu)
|
if (ret >= maxcpu)
|
||||||
return (-1);
|
return (-1);
|
||||||
cur++;
|
cur++;
|
||||||
}
|
}
|
||||||
@ -1647,6 +1647,8 @@ virDomainParseXMLDesc(virConnectPtr conn, const char *xmldesc, char **name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(cpuset);
|
free(cpuset);
|
||||||
|
if (res < 0)
|
||||||
|
goto error;
|
||||||
} else {
|
} else {
|
||||||
virXMLError(conn, VIR_ERR_NO_MEMORY, xmldesc, 0);
|
virXMLError(conn, VIR_ERR_NO_MEMORY, xmldesc, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user