From: Julien Grall Date: Thu, 17 Jan 2013 13:53:09 +0000 (+0000) Subject: libxl: don't continue to create the domain if the device model is not spawned X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7420 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a43d9b747adecd94802fdc57fdfd760bf853651;p=xen.git libxl: don't continue to create the domain if the device model is not spawned When the device model can't be spawned, rc variable is cleared in device_model_spawn_outcome (libxl_dm.c). In this case libxl will continue to create the domain and let it between life and death. Signed-off-by: Julien Grall Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index c036dc1f8e..51f9914266 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -1215,8 +1215,6 @@ static void device_model_spawn_outcome(libxl__egc *egc, } } - rc = 0; - out: dmss->callback(egc, dmss, rc); }