26 lines
896 B
Diff
26 lines
896 B
Diff
|
commit 13e81fc6fad03aa6b6ecf4230f44b2ea55078229
|
||
|
Author: Jim Fehlig <jfehlig@suse.com>
|
||
|
Date: Fri Mar 16 15:22:45 2018 -0600
|
||
|
|
||
|
libxl: call EndJob in error case
|
||
|
|
||
|
If starting the domain fails in libxlDomainCreateXML, we mistakenly
|
||
|
jumped to cleanup without calling libxlDomainObjEndJob. Remove the
|
||
|
jump to 'cleanup'.
|
||
|
|
||
|
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
|
||
|
Reviewed-by: John Ferlan <jferlan@redhat.com>
|
||
|
|
||
|
Index: libvirt-4.1.0/src/libxl/libxl_driver.c
|
||
|
===================================================================
|
||
|
--- libvirt-4.1.0.orig/src/libxl/libxl_driver.c
|
||
|
+++ libvirt-4.1.0/src/libxl/libxl_driver.c
|
||
|
@@ -1066,7 +1066,6 @@ libxlDomainCreateXML(virConnectPtr conn,
|
||
|
if (!vm->persistent) {
|
||
|
virDomainObjListRemove(driver->domains, vm);
|
||
|
virObjectLock(vm);
|
||
|
- goto cleanup;
|
||
|
}
|
||
|
goto endjob;
|
||
|
}
|