Fix: Missing rcu_read_lock in list_lttng_agent_events()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Nov 2014 19:30:17 +0000 (14:30 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Nov 2014 19:30:17 +0000 (14:30 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 30f7d49babce04dd13abfef85234db060e4e7fba..7baef882813e28e4ffd44bbc22fc4ab9c95d9ac8 100644 (file)
@@ -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;
This page took 0.027785 seconds and 4 git commands to generate.