From: Jérémie Galarneau Date: Tue, 18 Nov 2014 18:37:29 +0000 (-0500) Subject: Fix: Missing rcu_read_lock in ust_app_get_nb_stream() X-Git-Tag: v2.6.0-rc4~47 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=71f3589f908146b26f8e8131afbec84d840e4e48;p=lttng-tools.git Fix: Missing rcu_read_lock in ust_app_get_nb_stream() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 1ad08690d..11dde04ab 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -5172,10 +5172,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; }