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:
Peter Krempa 2020-06-23 07:44:45 +02:00
parent 2d26f8b710
commit 214faa0b04
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}