X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-sessiond%2Fcontext.c;h=c7c902197df34fa54143bec06dd437f8db5bf017;hb=e0b03593613331103ad4c15a95f5495a31289225;hp=d93a2895d2d3318a1cfb6291ec838c02020915b5;hpb=9df8df5ea4a12be72f265c3c0d6911ac4e207bc0;p=lttng-tools.git diff --git a/lttng-sessiond/context.c b/lttng-sessiond/context.c index d93a2895d..c7c902197 100644 --- a/lttng-sessiond/context.c +++ b/lttng-sessiond/context.c @@ -27,7 +27,7 @@ #include "context.h" #include "hashtable.h" -#include "kernel-ctl.h" +#include "kernel.h" /* * Add kernel context to an event of a specific channel. @@ -275,16 +275,13 @@ static int add_ustctx_all_channels(struct ltt_ust_session *ustsession, } hashtable_get_next(channels, &iter); } - rcu_read_unlock(); - if (!found && !no_event) { ret = LTTCOMM_NO_EVENT; goto error; } - ret = LTTCOMM_OK; - error: + rcu_read_unlock(); return ret; #endif return 0;