From: Mathieu Desnoyers Date: Fri, 3 Jun 2011 20:18:44 +0000 (-0400) Subject: Fix perf counter test bug X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4c7c514aab9e3a6ade7ced2015f54e89d2e84b1b;p=deliverable%2Flttng-modules.git Fix perf counter test bug Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-context-perf-counters.c b/lttng-context-perf-counters.c index e9a57888..ede510ec 100644 --- a/lttng-context-perf-counters.c +++ b/lttng-context-perf-counters.c @@ -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);