port fix from lttng kernel tracer 0.92
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 18 Dec 2009 19:23:55 +0000 (14:23 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Thu, 7 Jan 2010 02:45:35 +0000 (21:45 -0500)
libust/buffers.c

index b7b2318cb748c47acf924ace7c6aacde4f2b1652..c2928c03092fa77417d33e8368ebd5306f56a36d 100644 (file)
@@ -482,6 +482,13 @@ static void ltt_relay_print_errors(struct ltt_trace_struct *trace,
        struct ust_buffer *ltt_buf = channel->buf;
        long cons_off;
 
+       /*
+        * Can be called in the error path of allocation when
+        * trans_channel_data is not yet set.
+        */
+       if (!channel)
+               return;
+
        for (cons_off = atomic_long_read(&ltt_buf->consumed);
                        (SUBBUF_TRUNC(local_read(&ltt_buf->offset),
                                      channel)
This page took 0.026536 seconds and 4 git commands to generate.