* 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:
Daniel Veillard 2007-11-05 10:14:42 +00:00
parent c33b54df47
commit 028275d6da
2 changed files with 8 additions and 1 deletions

View File

@ -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>
* src/xm_internal.c: patches from Masayuki Sunou to fix a problem

View File

@ -126,7 +126,7 @@ parseCpuNumber(const char **str, int maxcpu)
while ((*cur >= '0') && (*cur <= '9')) {
ret = ret * 10 + (*cur - '0');
if (ret > maxcpu)
if (ret >= maxcpu)
return (-1);
cur++;
}
@ -1647,6 +1647,8 @@ virDomainParseXMLDesc(virConnectPtr conn, const char *xmldesc, char **name,
}
}
free(cpuset);
if (res < 0)
goto error;
} else {
virXMLError(conn, VIR_ERR_NO_MEMORY, xmldesc, 0);
}