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

index 2dcc52b7a2aff880bdfbb1c9fc61cb8ece35c27d..2c6f6f4a7bcb443d4a7e6638e489bd04d395e8bc 100644 (file)
@@ -3054,12 +3054,14 @@ static uint64_t get_session_max_subbuf_size(struct ltt_session *session)
                struct ltt_ust_channel *uchan;
                struct ltt_ust_session *usess = session->ust_session;
 
+               rcu_read_lock();
                cds_lfht_for_each_entry(usess->domain_global.channels->ht, &iter.iter,
                                uchan, node.node) {
                        if (uchan->attr.subbuf_size > max_size) {
                                max_size = uchan->attr.subbuf_size;
                        }
                }
+               rcu_read_unlock();
        }
 
        return max_size;
This page took 0.028202 seconds and 4 git commands to generate.