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-Tag: v2.6.0-rc4~42 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d515217cabe601d91ff9c3bb1d0d95dea9a989e4;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 21881296e..19c277d96 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -219,7 +219,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;