X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Ftracepoint.c;h=d7293dab31697d94164f785b0aace9f9824da898;hb=d75091471255c7f510b0ca9429703d50ac5205e2;hp=7de56ca0361dbbe5b55c0704cdcbe1eca44fb58a;hpb=13fb2d2c14d49d2e5457df7b5f02e99e979464c3;p=lttng-ust.git diff --git a/liblttng-ust/tracepoint.c b/liblttng-ust/tracepoint.c index 7de56ca0..d7293dab 100644 --- a/liblttng-ust/tracepoint.c +++ b/liblttng-ust/tracepoint.c @@ -143,8 +143,10 @@ tracepoint_entry_add_probe(struct tracepoint_entry *entry, int nr_probes = 0; struct tracepoint_probe *old, *new; - WARN_ON(!probe); - + if (!probe) { + WARN_ON(1); + return ERR_PTR(-EINVAL); + } debug_print_probes(entry); old = entry->probes; if (old) {