Fix perf counter test bug
[lttng-modules.git] / 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.022467 seconds and 4 git commands to generate.