mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
qemu: Check for explicit failure of qemuBlockSnapshotAddBlockdev
Check that the value is less than 0. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
1326fd1ce6
commit
4258eba6ed
@ -15592,7 +15592,7 @@ qemuDomainSnapshotCreateDiskActive(virQEMUDriverPtr driver,
|
||||
if (blockdev) {
|
||||
if (qemuBlockSnapshotAddBlockdev(actions,
|
||||
diskdata[i].disk,
|
||||
diskdata[i].src))
|
||||
diskdata[i].src) < 0)
|
||||
goto cleanup;
|
||||
} else {
|
||||
if (qemuBlockSnapshotAddLegacy(actions,
|
||||
|
Loading…
Reference in New Issue
Block a user