|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2] libxl: check for xc_domain_max_vcpus failure in libxl__build_pre
Coverity-ID: 1055047
Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx>
---
v2: Correct error message (get -> set)
tools/libxl/libxl_dom.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
index 1873459..c164469 100644
--- a/tools/libxl/libxl_dom.c
+++ b/tools/libxl/libxl_dom.c
@@ -209,7 +209,10 @@ int libxl__build_pre(libxl__gc *gc, uint32_t domid,
char *xs_domid, *con_domid;
int rc;
- xc_domain_max_vcpus(ctx->xch, domid, info->max_vcpus);
+ if (xc_domain_max_vcpus(ctx->xch, domid, info->max_vcpus) != 0) {
+ LOG(ERROR, "Couldn't set max vcpu count");
+ return ERROR_FAIL;
+ }
/*
* Check if the domain has any CPU affinity. If not, try to build
--
1.7.10.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |