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-Url: https://git.lttng.org./?a=commitdiff_plain;h=b11feea58d73a097e4e1447473798822da28a70d;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 7baef8828..33ab492da 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2552,10 +2552,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: