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>
Fri, 21 Nov 2014 07:35:55 +0000 (02:35 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 21881296ec31b2a7cabc34c567082c6b5888c202..19c277d96eb0d2c955ee019ef6b06ccef521beb8 100644 (file)
@@ -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;
This page took 0.027608 seconds and 4 git commands to generate.