提交 f86c45ca 编写于 作者: A Andrea Bolognani 提交者: Peter Krempa

nodeinfo: Check for errors when reading core_id

上级 5965c4f3
......@@ -512,7 +512,9 @@ virNodeParseNode(const char *node,
/* logical cpu is equivalent to a core on s390 */
core = cpu;
} else {
core = virNodeGetCpuValue(node, cpu, "topology/core_id", 0);
if ((core = virNodeGetCpuValue(node, cpu,
"topology/core_id", 0)) < 0)
goto cleanup;
}
if (core > ID_MAX) {
virReportError(VIR_ERR_INTERNAL_ERROR,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册