Fix: missing rcu_read_lock in trace_ust_destroy_session()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Nov 2014 21:27:40 +0000 (16:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 16 Nov 2014 12:21:15 +0000 (07:21 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.c

index 6618cdb09e30316f9eb6b6d4869f29d3f4728df3..a804fb6b890570e924b0cb54187437598febbbe7 100644 (file)
@@ -757,10 +757,12 @@ void trace_ust_destroy_session(struct ltt_ust_session *session)
        /* Cleaning up UST domain */
        destroy_domain_global(&session->domain_global);
 
+       rcu_read_lock();
        cds_lfht_for_each_entry(session->agents->ht, &iter.iter, agt, node.node) {
                lttng_ht_del(session->agents, &iter);
                agent_destroy(agt);
        }
+       rcu_read_unlock();
 
        /* Cleanup UID buffer registry object(s). */
        cds_list_for_each_entry_safe(reg, sreg, &session->buffer_reg_uid_list,
This page took 0.026127 seconds and 4 git commands to generate.