From: Jérémie Galarneau Date: Tue, 18 Nov 2014 19:30:17 +0000 (-0500) Subject: Fix: Missing rcu_read_lock in list_lttng_agent_events() X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e5bbf67813693bf82d6919918fb0701431be9d0b;p=lttng-tools.git Fix: Missing rcu_read_lock in list_lttng_agent_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 30f7d49ba..7baef8828 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -220,7 +220,9 @@ static int list_lttng_agent_events(struct agent *agt, DBG3("Listing agent events"); + rcu_read_lock(); nb_event = lttng_ht_get_count(agt->events); + rcu_read_unlock(); if (nb_event == 0) { ret = nb_event; goto error;