Fix: add missing rcu lock for UST lookup
[lttng-tools.git] / src / bin / lttng-sessiond / context.c
index c1b7410da00020dc541313326892d850e6810b28..46e1b344612e1f8af58a1117ec214c112b0a05b3 100644 (file)
@@ -241,6 +241,8 @@ int context_ust_add(struct ltt_ust_session *usess, int domain,
        assert(ctx);
        assert(channel_name);
 
+       rcu_read_lock();
+
        /*
         * Define which channel's hashtable to use from the domain or quit if
         * unknown domain.
@@ -303,5 +305,6 @@ int context_ust_add(struct ltt_ust_session *usess, int domain,
        }
 
 error:
+       rcu_read_unlock();
        return ret;
 }
This page took 0.022889 seconds and 4 git commands to generate.