From: Jérémie Galarneau Date: Thu, 13 Nov 2014 21:09:57 +0000 (-0500) Subject: Fix: missing rcu_read_lock in cmd_start_trace() X-Git-Tag: v2.5.3~48 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4cb946efd96a7efd864944d5ad979e6938de0cd6;p=lttng-tools.git Fix: missing rcu_read_lock in cmd_start_trace() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 79b104012..4a1af43a7 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1813,7 +1813,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;