From 214faa0b04ace42aebfa40e1d19aabbf3003f0fe Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 23 Jun 2020 07:44:45 +0200 Subject: [PATCH] qemuBackupDiskStarted: Fix improper dereference of array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- src/qemu/qemu_backup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_backup.c b/src/qemu/qemu_backup.c index 43fe8942ad..ab9cd2689f 100644 --- a/src/qemu/qemu_backup.c +++ b/src/qemu/qemu_backup.c @@ -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); } } -- GitLab