提交 ab0f561d 编写于 作者: D Daniel Veillard

Forgot one change, Daniel

上级 9f211bbf
......@@ -2683,7 +2683,7 @@ virNodeGetCellsFreeMemory(virConnectPtr conn, unsigned long long *freeMems,
return (-1);
}
if ((freeMems == NULL) || (maxCells <= 0)) {
if ((freeMems == NULL) || (maxCells <= 0) || (startCell < 0)) {
virLibConnError(conn, VIR_ERR_INVALID_ARG, __FUNCTION__);
return (-1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册