]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add missing goto error in qemuRestoreCgroupState
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Dec 2014 18:59:33 +0000 (19:59 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Dec 2014 19:44:33 +0000 (20:44 +0100)
commit86759ec61a77f545f9238d83adbfaa16d85fa830
tree5abbb97355b1ef27ec19033a425baa13356c21d5
parent57c008f8609e4c8b95dcac204c759d9b5d9e1dac
qemu: Add missing goto error in qemuRestoreCgroupState

Commit af2a1f05 tried clearly separating each condition in
qemuRestoreCgroupState() for the sake of readability, however somehow
one condition body was missing.  That means that the body of the next
condition got executed only if both of there were true, which is
impossible, thus resulting in a dead code and a logic error.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_cgroup.c