mirror of https://gitee.com/openkylin/libvirt.git
qemuBackupDiskStarted: Fix improper dereference of array
The code would repeatedly mark the first disk's blockjob as started rather than accessing all the blockjobs. Fix the dereferencing operator. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
2d26f8b710
commit
214faa0b04
|
@ -482,7 +482,7 @@ qemuBackupDiskStarted(virDomainObjPtr vm,
|
|||
for (i = 0; i < ndd; i++) {
|
||||
dd[i].started = true;
|
||||
dd[i].backupdisk->state = VIR_DOMAIN_BACKUP_DISK_STATE_RUNNING;
|
||||
qemuBlockJobStarted(dd->blockjob, vm);
|
||||
qemuBlockJobStarted(dd[i].blockjob, vm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue