[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] tools/xl: Call init function for libxl_bitmap
commit c3d8888dacd0abf9fe20dd62d294f5c937114851 Author: Uma Sharma <uma.sharma523@xxxxxxxxx> AuthorDate: Tue Oct 21 03:15:10 2014 +0530 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Mon Jan 12 17:35:56 2015 +0000 tools/xl: Call init function for libxl_bitmap This patch calls init function for libxl_bitmap in main_cpupoolnumasplit() and vcpuset() tools/libxl/xl_cmdimpl.c IDL generated libxl types should be used only after calling the init function even if the variable is simply being passed by reference as an output parameter to a libxl function Signed-off-by: Uma Sharma <uma.sharma523@xxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> -- --- tools/libxl/xl_cmdimpl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index fb7573e..dd07665 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -5016,6 +5016,7 @@ static void vcpuset(uint32_t domid, const char* nr_vcpus, int check_host) unsigned int max_vcpus, i; libxl_bitmap cpumap; + libxl_bitmap_init(&cpumap); max_vcpus = strtoul(nr_vcpus, &endptr, 10); if (nr_vcpus == endptr) { fprintf(stderr, "Error: Invalid argument.\n"); @@ -7480,6 +7481,7 @@ int main_cpupoolnumasplit(int argc, char **argv) ret = 0; + libxl_bitmap_init(&cpumap); poolinfo = libxl_list_cpupool(ctx, &n_pools); if (!poolinfo) { fprintf(stderr, "error getting cpupool info\n"); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |