This is a simple fix to make sure libxl__build_hvm returns an error code in case of failure.
Signed-off-by: Roger Pau Monné <roger....@citrix.com> Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Cc: Ian Campbell <ian.campb...@citrix.com> Cc: Wei Liu <wei.l...@citrix.com> --- I would rather prefer to have it fixed in a proper way like it's done in my "libxl: fix libxl__build_hvm error handling" as part of the HVMlite series, but I understand that given the current status of the tree and the willingness to backport this to stable branches the other approach is going to be much harder. --- tools/libxl/libxl_dom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index e1f11a3..668ce11 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -1019,6 +1019,7 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t domid, return 0; out: + rc = ERROR_FAIL; return rc; } -- 1.9.5 (Apple Git-50.3) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel