Fix: liblttng-ust-fork Makefile flags mismatch
[lttng-ust.git] / liblttng-ust / tracepoint.c
index 7de56ca0361dbbe5b55c0704cdcbe1eca44fb58a..d7293dab31697d94164f785b0aace9f9824da898 100644 (file)
@@ -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) {
This page took 0.02629 seconds and 4 git commands to generate.