mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: Resolve Coverity FORWARD_NULL
If the qemuMigrationEatCookie() fails to set mig, we jump to cleanup: which will call qemuMigrationCancelDriveMirror() without first checking if mig == NULL Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
114ebecd98
commit
e5baef83e1
@ -3614,7 +3614,8 @@ qemuMigrationRun(virQEMUDriverPtr driver,
|
||||
orig_err = virSaveLastError();
|
||||
|
||||
/* cancel any outstanding NBD jobs */
|
||||
qemuMigrationCancelDriveMirror(mig, driver, vm);
|
||||
if (mig)
|
||||
qemuMigrationCancelDriveMirror(mig, driver, vm);
|
||||
|
||||
if (spec->fwdType != MIGRATION_FWD_DIRECT) {
|
||||
if (iothread && qemuMigrationStopTunnel(iothread, ret < 0) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user