]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix incorrect jump labels in error paths
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Thu, 23 Feb 2017 09:44:08 +0000 (10:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Feb 2017 14:32:45 +0000 (15:32 +0100)
commiteca76884ea7f75fb1dd015337ed1f5039b5b6c56
tree8f4f2f8319c40d5c73d4964f084644b58607700c
parent3cddd63aec979c98f7ab09e510ba4a777b88b5a8
qemu: Fix incorrect jump labels in error paths

Fix incorrect jump labels in error paths as the stop jump is only
needed if the driver has already changed the state. For example
'virAtomicIntInc(&driver->nactive)' will be 'reverted' in the
qemuProcessStop call.

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c