newer get_trace_clock may fail on arm v0.19.2
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 29 Oct 2010 16:24:55 +0000 (12:24 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 29 Oct 2010 16:24:55 +0000 (12:24 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-tracer.c

index 8eae966e386bb6e6f8cb9a09e5b291bb0d341e5d..24a3a92e853938b7e10e9ee643b0412698ee0b2b 100644 (file)
@@ -782,7 +782,9 @@ int ltt_trace_alloc(const char *trace_name)
        kref_init(&trace->kref);
        init_waitqueue_head(&trace->kref_wq);
        trace->active = 0;
-       get_trace_clock();
+       err = get_trace_clock();
+       if (err)
+               goto traces_error;
        trace->freq_scale = trace_clock_freq_scale();
 
        if (!trace->transport) {
This page took 0.025753 seconds and 4 git commands to generate.