Fix: missing rcu_read_lock in cmd_start_trace()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Nov 2014 21:09:57 +0000 (16:09 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Nov 2014 21:28:20 +0000 (16:28 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 17091de09ec66d9bd5b6028bbf04b90c7a99d5ff..c2b0248ea5210e4506b9086d2228b89fbf89c1ff 100644 (file)
@@ -1848,7 +1848,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.027988 seconds and 5 git commands to generate.