* [PATCH] tools/libxc: fix bitmap_alloc usage in xc_ia64_send_vcpumap
@ 2012-01-30 0:17 Olaf Hering
0 siblings, 0 replies; only message in thread
From: Olaf Hering @ 2012-01-30 0:17 UTC (permalink / raw)
To: xen-devel
# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# 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@aepfle.de>
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-30 0:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30 0:17 [PATCH] tools/libxc: fix bitmap_alloc usage in xc_ia64_send_vcpumap Olaf Hering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).