提交 4258eba6 编写于 作者: P Peter Krempa

qemu: Check for explicit failure of qemuBlockSnapshotAddBlockdev

Check that the value is less than 0.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
上级 1326fd1c
...@@ -15592,7 +15592,7 @@ qemuDomainSnapshotCreateDiskActive(virQEMUDriverPtr driver, ...@@ -15592,7 +15592,7 @@ qemuDomainSnapshotCreateDiskActive(virQEMUDriverPtr driver,
if (blockdev) { if (blockdev) {
if (qemuBlockSnapshotAddBlockdev(actions, if (qemuBlockSnapshotAddBlockdev(actions,
diskdata[i].disk, diskdata[i].disk,
diskdata[i].src)) diskdata[i].src) < 0)
goto cleanup; goto cleanup;
} else { } else {
if (qemuBlockSnapshotAddLegacy(actions, if (qemuBlockSnapshotAddLegacy(actions,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册