mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
qemu: fix error propagation in qemuMigrationBegin
If virCloseCallbacksSet fails, qemuMigrationBegin must return NULL to indicate an error occurred. Signed-off-by: Michael Chapman <mike@very.puzzling.org>
This commit is contained in:
parent
7578cc17f5
commit
77ddd0bba2
@ -2761,8 +2761,10 @@ qemuMigrationBegin(virConnectPtr conn,
|
|||||||
* place.
|
* place.
|
||||||
*/
|
*/
|
||||||
if (virCloseCallbacksSet(driver->closeCallbacks, vm, conn,
|
if (virCloseCallbacksSet(driver->closeCallbacks, vm, conn,
|
||||||
qemuMigrationCleanup) < 0)
|
qemuMigrationCleanup) < 0) {
|
||||||
|
VIR_FREE(xml);
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
}
|
||||||
qemuMigrationJobContinue(vm);
|
qemuMigrationJobContinue(vm);
|
||||||
} else {
|
} else {
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
Loading…
Reference in New Issue
Block a user