mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
qemu: fix a typo on qemuDomainSetBlkioParameters
It should be a copy-paste error, the result is programming will result in an infinite loop again due to without iterating 'j' variable. * src/qemu/qemu_driver.c: fix a typo on qemuDomainSetBlkioParameters. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=770520 Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
parent
cb0af106de
commit
d8d9b0e058
@ -6002,7 +6002,7 @@ static int qemuDomainSetBlkioParameters(virDomainPtr dom,
|
|||||||
ret = -1;
|
ret = -1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (j = 0; j < ndevices; i++) {
|
for (j = 0; j < ndevices; j++) {
|
||||||
rc = virCgroupSetBlkioDeviceWeight(group,
|
rc = virCgroupSetBlkioDeviceWeight(group,
|
||||||
devices[j].path,
|
devices[j].path,
|
||||||
devices[j].weight);
|
devices[j].weight);
|
||||||
|
Loading…
Reference in New Issue
Block a user