projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b993393
)
tools/libxc: fix bitmap_alloc usage in xc_ia64_send_vcpumap
author
Olaf Hering
<olaf@aepfle.de>
Tue, 31 Jan 2012 11:34:43 +0000
(11:34 +0000)
committer
Olaf Hering
<olaf@aepfle.de>
Tue, 31 Jan 2012 11:34:43 +0000
(11:34 +0000)
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>
Committed-by: Keir Fraser <keir@xen.org>
tools/libxc/ia64/xc_ia64_linux_save.c
patch
|
blob
|
history
diff --git
a/tools/libxc/ia64/xc_ia64_linux_save.c
b/tools/libxc/ia64/xc_ia64_linux_save.c
index 5bb988cbd78ba3aa7b2b49da626963741084d52d..3440da343a711426b88004c36b79a7d20cfc2db8 100644
(file)
--- 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, int io_fd, uint32_t dom,
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;
}