aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_tbuf.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2010-11-19 18:15:14 +0000
committerAndre Przywara <andre.przywara@amd.com>2010-11-19 18:15:14 +0000
commitec527f3ef9959cddae504233f03164d5140e2bad (patch)
treecdd9147b92c714281e39ab3a790f492b6ff155a3 /tools/libxc/xc_tbuf.c
parent9bd7a357150b91c83dd62a9cc8ad8df52b150548 (diff)
downloadxen-ec527f3ef9959cddae504233f03164d5140e2bad.tar.gz
xen-ec527f3ef9959cddae504233f03164d5140e2bad.tar.bz2
xen-ec527f3ef9959cddae504233f03164d5140e2bad.zip
libxc: fix tracing (broken with hypercall buffers)
the attached patch makes Xen tracing work again, after the introduction of the hypercall buffers broke it. Just a missing line. Thanks to Uwe Dannowski for reporting this. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_tbuf.c')
-rw-r--r--tools/libxc/xc_tbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxc/xc_tbuf.c b/tools/libxc/xc_tbuf.c
index 5f91b6eeef..b52fa8fa87 100644
--- a/tools/libxc/xc_tbuf.c
+++ b/tools/libxc/xc_tbuf.c
@@ -121,6 +121,7 @@ int xc_tbuf_set_cpu_mask(xc_interface *xch, uint32_t mask)
uint64_t mask64 = mask;
bytemap = xc_hypercall_buffer_alloc(xch, bytemap, sizeof(mask64));
+ if (bytemap == NULL)
{
PERROR("Could not allocate memory for xc_tbuf_set_cpu_mask hypercall");
goto out;