projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
250f988
)
libxl: set ret to non-zero value in failure path
author
Wei Liu
<wei.liu2@citrix.com>
Wed, 9 Sep 2015 17:03:36 +0000
(18:03 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Thu, 10 Sep 2015 11:31:26 +0000
(12:31 +0100)
... otherwise we have something like:
xl: libxl_create.c:968: initiate_domain_create: Assertion `ret' failed.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_create.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_create.c
b/tools/libxl/libxl_create.c
index 51281608cc605c273b52ead39e35c77cc712e8f2..29c2641e093cfa6e8b9698e71de088e39acfd503 100644
(file)
--- a/
tools/libxl/libxl_create.c
+++ b/
tools/libxl/libxl_create.c
@@
-865,6
+865,7
@@
static void initiate_domain_create(libxl__egc *egc,
*/
if (d_config->c_info.type == LIBXL_DOMAIN_TYPE_PV &&
d_config->b_info.num_vnuma_nodes) {
+ ret = ERROR_INVAL;
LOG(ERROR, "PV vNUMA is not yet supported");
goto error_out;
}