 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] tools/libxc: fix bitmap_alloc usage in xc_ia64_send_vcpumap
 # HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1327882598 -3600
# Node ID 2b11c22c903b52156ebf0cbe0891cc7d8f918633
# Parent  39df93acd4089eaae138e1decf49aec39fb19417
tools/libxc: fix bitmap_alloc usage in xc_ia64_send_vcpumap
Changeset 23577:607474aeefe1 introduced an error in
xc_ia64_send_vcpumap(), bitmap_alloc() was not used correctly.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 39df93acd408 -r 2b11c22c903b tools/libxc/ia64/xc_ia64_linux_save.c
--- a/tools/libxc/ia64/xc_ia64_linux_save.c
+++ b/tools/libxc/ia64/xc_ia64_linux_save.c
@@ -195,8 +195,8 @@ xc_ia64_send_vcpumap(xc_interface *xch, 
     uint64_t *vcpumap = NULL;
 
     vcpumap_size = bitmap_size(max_virt_cpus);
-    rc = bitmap_alloc(&vcpumap, max_virt_cpus);
-    if (rc < 0) {
+    vcpumap = bitmap_alloc(max_virt_cpus);
+    if (!vcpumap) {
         ERROR("memory alloc for vcpumap");
         goto out;
     }
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |