qemu_process: check for correct return value while starting domain

Function qemuProcessLaunch returns '-2' in case there was an error and
we need to cleanup labels.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2016-03-14 16:54:03 +01:00
parent 0f4d317204
commit 5b9e77883b

View File

@ -5458,7 +5458,7 @@ qemuProcessStart(virConnectPtr conn,
if ((rv = qemuProcessLaunch(conn, driver, vm, asyncJob, incoming,
snapshot, vmop, flags)) < 0) {
if (rv == -1)
if (rv == -2)
relabel = true;
goto stop;
}