提交 eeb224b8 编写于 作者: R Richard W.M. Jones

* src/xm_internal.c: If vcpu cpuset attribute is invalid

	then display an error instead of silently ignoring it
	(Hiroyuki Kaguchi).
上级 4a9ebf7d
Tue Jun 3 08:58:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
* src/xm_internal.c: If vcpu cpuset attribute is invalid
then display an error instead of silently ignoring it
(Hiroyuki Kaguchi).
Mon Jun 2 12:52:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
General tips for contributing patches
......
......@@ -2004,20 +2004,15 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
char *ranges;
ranges = virConvertCpuSet(conn, cpus, 0);
if (ranges != NULL) {
VIR_FREE(cpus);
if (xenXMConfigSetString(conf, "cpus", ranges) < 0) {
VIR_FREE(ranges);
goto error;
}
VIR_FREE(cpus);
if (ranges == NULL) {
goto error;
}
if (xenXMConfigSetString(conf, "cpus", ranges) < 0) {
VIR_FREE(ranges);
} else {
if (xenXMConfigSetString(conf, "cpus", cpus) < 0) {
VIR_FREE(cpus);
goto error;
}
VIR_FREE(cpus);
goto error;
}
VIR_FREE(ranges);
}
obj = xmlXPathEval(BAD_CAST "string(/domain/os/type)", ctxt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册