|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools/libxc: fix bitmap_alloc usage in xc_ia64_send_vcpumap
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1328009683 0
# Node ID eabfa0150f1cbc328741676e7e6d95a511585634
# Parent 03fdacb67f2cb76a24fd9517f1b0ea13e83973d2
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>
Committed-by: Keir Fraser <keir@xxxxxxx>
---
diff -r 03fdacb67f2c -r eabfa0150f1c tools/libxc/ia64/xc_ia64_linux_save.c
--- a/tools/libxc/ia64/xc_ia64_linux_save.c Tue Jan 31 11:33:35 2012 +0000
+++ b/tools/libxc/ia64/xc_ia64_linux_save.c Tue Jan 31 11:34:43 2012 +0000
@@ -195,8 +195,8 @@
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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |