From: Alex Jia Date: Tue, 10 Jan 2012 09:55:01 +0000 (+0800) Subject: qemu: fix a typo on qemuDomainSetBlkioParameters X-Git-Tag: v0.9.10-rc1~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d9b0e05844802d9f659f35e1c8a4653f32d5f2;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 1a7e8162d3..383b2be3ff 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -6002,7 +6002,7 @@ static int qemuDomainSetBlkioParameters(virDomainPtr dom, ret = -1; continue; } - for (j = 0; j < ndevices; i++) { + for (j = 0; j < ndevices; j++) { rc = virCgroupSetBlkioDeviceWeight(group, devices[j].path, devices[j].weight);