mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
nodeinfo: report error when failure in nodeSetMemoryParameters
nodeSetMemoryParameters() will call nodeSetMemoryParameterValue() to set parameters. But it just filter the return code '-2' as failure. Indeed we should report error when rc is negative. https://bugzilla.redhat.com/show_bug.cgi?id=1161541 Signed-off-by: Jincheng Miao <jmiao@redhat.com>
This commit is contained in:
parent
e3c44f0d36
commit
a5c7ea4536
@ -1374,8 +1374,7 @@ nodeSetMemoryParameters(virTypedParameterPtr params ATTRIBUTE_UNUSED,
|
||||
for (i = 0; i < nparams; i++) {
|
||||
rc = nodeSetMemoryParameterValue(¶ms[i]);
|
||||
|
||||
/* Out of memory */
|
||||
if (rc == -2)
|
||||
if (rc < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user