]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: fix a typo on qemuDomainSetBlkioParameters
authorAlex Jia <ajia@redhat.com>
Tue, 10 Jan 2012 09:55:01 +0000 (17:55 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Jan 2012 10:41:27 +0000 (11:41 +0100)
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>
src/qemu/qemu_driver.c

index 1a7e8162d31d09cfb29b08b1cdcdb8fac89fd18e..383b2be3ff9497a7214724efff6e100de89bbb42 100644 (file)
@@ -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);