mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
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:
1 parent
0f4d317204
commit
5b9e77883b
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user