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>
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.