@@ -968,10 +968,7 @@ static void domcreate_dm_support_checked(libxl__egc *egc,
libxl_domain_config *const d_config = dcs->guest_config;
const int restore_fd = dcs->restore_fd;
- if (rc) {
- domcreate_complete(egc, dcs, rc);
- return;
- }
+ if (rc) goto out;
dcs->bl.ao = ao;
libxl_device_disk *bootdisk =
@@ -994,6 +991,10 @@ static void domcreate_dm_support_checked(libxl__egc *egc,
libxl__bootloader_run(egc, &dcs->bl);
}
return;
+
+ out:
+ domcreate_complete(egc, dcs, rc);
+ return;
}
static void domcreate_bootloader_console_available(libxl__egc *egc,
We are going to want this shortly. No functional change. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> --- v6: New patch. --- tools/libxl/libxl_create.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)