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 committed 2016-03-22 13:59:13 +01:00
1 parent 0f4d317204
commit 5b9e77883b
1 file changed
+1 -1
+1 -1
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;
}