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é <[email protected]> Cc: Ian Jackson <[email protected]> Cc: Stefano Stabellini <[email protected]> Cc: Ian Campbell <[email protected]> Cc: Wei Liu <[email protected]> --- 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 [email protected] http://lists.xen.org/xen-devel
