[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxc: fix tracing (broken with hypercall buffers)



# HG changeset patch
# User Andre Przywara <andre.przywara@xxxxxxx>
# Date 1290190514 0
# Node ID 48738c7849bbce5434a0dae1cccc5938f855d4e4
# Parent  a61e0de838bd61cf2efdd67f33b8cf739dd01919
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@xxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxc/xc_tbuf.c |    1 +
 1 files changed, 1 insertion(+)

diff -r a61e0de838bd -r 48738c7849bb tools/libxc/xc_tbuf.c
--- a/tools/libxc/xc_tbuf.c     Fri Nov 19 13:49:54 2010 +0000
+++ b/tools/libxc/xc_tbuf.c     Fri Nov 19 18:15:14 2010 +0000
@@ -121,6 +121,7 @@ int xc_tbuf_set_cpu_mask(xc_interface *x
     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;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.