mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
0f4d317204
commit
5b9e77883b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue