]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuMigrationSrcRun: Don't jump to 'exit_monitor' from outside of the monitor
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Mar 2021 13:52:03 +0000 (14:52 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 9 Mar 2021 12:27:43 +0000 (13:27 +0100)
Failure of 'qemuMigrationSetDBusVMState' would jump to 'exit_monitor'
but the function isn't called inside of the monitor context.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c

index e44931dcfae57fba31258598f313a47ab0c90b51..79dcb4a15d7340db9100935882d0655a06efc47a 100644 (file)
@@ -4156,7 +4156,7 @@ qemuMigrationSrcRun(virQEMUDriverPtr driver,
     }
 
     if (qemuMigrationSetDBusVMState(driver, vm) < 0)
-        goto exit_monitor;
+        goto error;
 
     /* Before EnterMonitor, since already qemuProcessStopCPUs does that */
     if (!(flags & VIR_MIGRATE_LIVE) &&