Fix: missing rcu_read_lock in cmd_start_trace()
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 022d5cee14aef361780e400c37ef31877728550e..fc8c392500f15509c131d70d5ca0eb534552e832 100644 (file)
@@ -1805,7 +1805,9 @@ int cmd_start_trace(struct ltt_session *session)
         * possible to enable channel thus inform the client.
         */
        if (usess && usess->domain_global.channels) {
+               rcu_read_lock();
                nb_chan += lttng_ht_get_count(usess->domain_global.channels);
+               rcu_read_unlock();
        }
        if (ksession) {
                nb_chan += ksession->channel_count;
This page took 0.023301 seconds and 4 git commands to generate.