[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: initialise cpupoolinfo in libxl__domain_scheduler
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1340956631 -3600 # Node ID a82c0e0d4aa46ec3f70a46ce6d7c215e374a2d08 # Parent 675b3d693971d3db3cb676e032291c3f9321b46e libxl: initialise cpupoolinfo in libxl__domain_scheduler If libxl_cpupool_info fails then we would call libxl_cpupoolinfo_dispose on an uninitialised struct, and possibly free an invalid pointer. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson.citrix.com> --- diff -r 675b3d693971 -r a82c0e0d4aa4 tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Fri Jun 29 15:42:27 2012 +0100 +++ b/tools/libxl/libxl_dom.c Fri Jun 29 08:57:11 2012 +0100 @@ -81,6 +81,7 @@ libxl_scheduler libxl__domain_scheduler( if (cpupool < 0) return sched; + libxl_cpupoolinfo_init(&poolinfo); rc = libxl_cpupool_info(CTX, &poolinfo, cpupool); if (rc < 0) goto out; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |