mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
libxl: don't end job for ephemeal domain on start failure
commit 4b53d0d4ac9c "libxl: don't remove persistent domain on start failure" cleans up the vm object and sets it to NULL if the vm is not persistent, however at end job vm (now NULL) is dereferenced via the call to libxlDomainObjEndJob. Avoid this by skipping "endjob" and going straight to "cleanup" in this case. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> (cherry picked from commit ee7758f09bad855f5d0fdf9804d8979cdbbff40e)
This commit is contained in:
parent
328ad9e678
commit
b84e9ef24b
@ -992,6 +992,7 @@ libxlDomainCreateXML(virConnectPtr conn, const char *xml,
|
||||
if (!vm->persistent) {
|
||||
virDomainObjListRemove(driver->domains, vm);
|
||||
vm = NULL;
|
||||
goto cleanup;
|
||||
}
|
||||
goto endjob;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user