mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxl: do not blunder on if bootloader fails
If the bootloader failed, we would call the creation failure callback but _also_ blunder on trying to recreate the domain, due to a missing "return". Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Reported-by: Roger Pau Monne <roger.pau@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
7fb166219b
commit
267cda5f2e
1 file changed
+4
-1
@@ -672,7 +672,10 @@ static void domcreate_bootloader_done(libxl__egc *egc,
|
||||
libxl__srm_restore_autogen_callbacks *const callbacks =
|
||||
&dcs->shs.callbacks.restore.a;
|
||||
|
||||
if (rc) domcreate_rebuild_done(egc, dcs, rc);
|
||||
if (rc) {
|
||||
domcreate_rebuild_done(egc, dcs, rc);
|
||||
return;
|
||||
}
|
||||
|
||||
/* consume bootloader outputs. state->pv_{kernel,ramdisk} have
|
||||
* been initialised by the bootloader already.
|
||||
|
||||