提交 214faa0b 编写于 作者: P Peter Krempa

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: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 2d26f8b7
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册