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

index 7baef882813e28e4ffd44bbc22fc4ab9c95d9ac8..33ab492daf330eacacc239646b866b612d5975e8 100644 (file)
@@ -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:
This page took 0.036757 seconds and 4 git commands to generate.