Fix: Missing rcu_read_lock in ust_app_get_nb_stream()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Nov 2014 18:37:29 +0000 (13:37 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 21 Nov 2014 15:44:50 +0000 (10:44 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index 84ab8b1c8db29a67dc5cae531f52b64682356026..0b792d76191b52d853ef73ade4ec7081062dc9ef 100644 (file)
@@ -5153,10 +5153,12 @@ unsigned int ust_app_get_nb_stream(struct ltt_ust_session *usess)
                cds_list_for_each_entry(reg, &usess->buffer_reg_uid_list, lnode) {
                        struct buffer_reg_channel *reg_chan;
 
+                       rcu_read_lock();
                        cds_lfht_for_each_entry(reg->registry->channels->ht, &iter.iter,
                                        reg_chan, node.node) {
                                ret += reg_chan->stream_count;
                        }
+                       rcu_read_unlock();
                }
                break;
        }
This page took 0.027163 seconds and 4 git commands to generate.