Fix perf counter test bug
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 3 Jun 2011 20:18:44 +0000 (16:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 3 Jun 2011 20:18:44 +0000 (16:18 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-context-perf-counters.c

index e9a57888c4db8b1d818e76c17c1e10d9421809c4..ede510ecc16c726dfe76688518a1c57aa1fe816e 100644 (file)
@@ -112,7 +112,7 @@ int lttng_add_perf_counter_to_ctx(uint32_t type,
        }
 
        name_alloc = kstrdup(name, GFP_KERNEL);
-       if (!field->event_field.name)
+       if (!name_alloc)
                goto name_alloc_error;
 
        field = lttng_append_context(ctx);
This page took 0.026889 seconds and 4 git commands to generate.