]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix inf-loop in blkio parameters
authorEric Blake <eblake@redhat.com>
Wed, 28 Dec 2011 13:53:27 +0000 (06:53 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 28 Dec 2011 13:57:42 +0000 (06:57 -0700)
commit1a3f6608aa4c945bb3f392c25ff06b13f1dc5f30
tree0f0871c72fe29effacae4ff201e4420428384e76
parent96b3716c2a5b2111c84ec7aabf890b520393cb68
qemu: fix inf-loop in blkio parameters

https://bugzilla.redhat.com/show_bug.cgi?id=770520

We had two nested loops both trying to use 'i' as the iteration
variable, which can result in an infinite loop when the inner
loop interferes with the outer loop.  Introduced in commit 93ab585.

* src/qemu/qemu_driver.c (qemuDomainSetBlkioParameters): Don't
reuse iteration variable across two loops.
src/qemu/qemu_driver.c