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>
Sun, 16 Nov 2014 12:21:01 +0000 (07:21 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 62324455fe68aeee93fca8a4ebd8c00f8c19b6a3..d40b58c365be01609300faa1eb77ce2f3063a313 100644 (file)
@@ -1836,7 +1836,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.02831 seconds and 4 git commands to generate.