X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-probes.c;h=ad7f7c2b5a539ce46516b81270f5315b3823a593;hb=833ad6a0c344849269df6875f40c3d7cb21529d3;hp=dbdb50d402a2f7bbecd06a203d03fe46a3b85300;hpb=85a9ca7ff30ef892e5865c5541fd11f6c6de33a3;p=lttng-modules.git diff --git a/ltt-probes.c b/ltt-probes.c index dbdb50d4..ad7f7c2b 100644 --- a/ltt-probes.c +++ b/ltt-probes.c @@ -73,12 +73,11 @@ const struct lttng_event_desc *ltt_event_get(const char *name) mutex_lock(&probe_mutex); event = find_event(name); + mutex_unlock(&probe_mutex); if (!event) - goto end; + return NULL; ret = try_module_get(__module_text_address((unsigned long) event)); WARN_ON_ONCE(!ret); -end: - mutex_unlock(&probe_mutex); return event; } EXPORT_SYMBOL_GPL(ltt_event_get);