mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
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…
x
Reference in New Issue
Block a user