提交 028275d6 编写于 作者: D Daniel Veillard

* src/xml.c: patch from Beth Kon to fix a problem when the

  cpuset parameter for numa uses cpu maxcpu-1
Daniel
上级 c33b54df
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
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册