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 16:42:33 +0000 (11:42 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index b0e47a086f575284de902af55df81737189f86bb..0ae02c32455819f82e1ee33380d54dc124aff878 100644 (file)
@@ -5124,10 +5124,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.027229 seconds and 4 git commands to generate.