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.4.3~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=204ce14b8b883eb25afbdf9336e5cd3d7f8b8fb9;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 022d5cee1..fc8c39250 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -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;