From: Keir Fraser Date: Thu, 31 Jan 2008 09:39:44 +0000 (+0000) Subject: libxc: Fix the third argument of bitmap_64_to_byte in xc_tbuf_set_cpu_mask X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14341^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aba29a98bcd81046b6a9e32a6e8810e8c9fec987;p=xen.git libxc: Fix the third argument of bitmap_64_to_byte in xc_tbuf_set_cpu_mask Signed-off-by: Eric Liu --- diff --git a/tools/libxc/xc_tbuf.c b/tools/libxc/xc_tbuf.c index 266732608a..3948d0af7d 100644 --- a/tools/libxc/xc_tbuf.c +++ b/tools/libxc/xc_tbuf.c @@ -103,7 +103,7 @@ int xc_tbuf_set_cpu_mask(int xc_handle, uint32_t mask) sysctl.interface_version = XEN_SYSCTL_INTERFACE_VERSION; sysctl.u.tbuf_op.cmd = XEN_SYSCTL_TBUFOP_set_cpu_mask; - bitmap_64_to_byte(bytemap, &mask64, sizeof (mask64)); + bitmap_64_to_byte(bytemap, &mask64, sizeof (mask64) * 8); set_xen_guest_handle(sysctl.u.tbuf_op.cpu_mask.bitmap, bytemap); sysctl.u.tbuf_op.cpu_mask.nr_cpus = sizeof(bytemap) * 8;