From: Jérémie Galarneau Date: Tue, 18 Nov 2014 19:30:56 +0000 (-0500) Subject: Fix: Missing rcu_read_lock in cmd_list_events() X-Git-Tag: v2.6.0-rc4~41 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a3f99e2662833abbcb50c87da608b129a9e57617;p=lttng-tools.git Fix: Missing rcu_read_lock in cmd_list_events() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 19c277d96..cc4adfd5d 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2534,10 +2534,12 @@ ssize_t cmd_list_events(int domain, struct ltt_session *session, struct lttng_ht_iter iter; struct agent *agt; + rcu_read_lock(); cds_lfht_for_each_entry(session->ust_session->agents->ht, &iter.iter, agt, node.node) { nb_event = list_lttng_agent_events(agt, events); } + rcu_read_unlock(); } break; default: