From 4258eba6ed3adf1a8f7c4126cf18575527255fab Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 28 Nov 2019 14:58:55 +0100 Subject: [PATCH] qemu: Check for explicit failure of qemuBlockSnapshotAddBlockdev Check that the value is less than 0. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- src/qemu/qemu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index e65150f42b..0a4a2471c7 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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,