projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Missing rcu_read_lock in cmd_list_channels()
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index 0a88a26bba7fb04d5a498bbd971840db8ef86988..4b7ef62b600b3cc41f8d47f040b1f949b7b6b093 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-2413,8
+2413,10
@@
ssize_t cmd_list_channels(int domain, struct ltt_session *session,
break;
case LTTNG_DOMAIN_UST:
if (session->ust_session != NULL) {
break;
case LTTNG_DOMAIN_UST:
if (session->ust_session != NULL) {
+ rcu_read_lock();
nb_chan = lttng_ht_get_count(
nb_chan = lttng_ht_get_count(
- session->ust_session->domain_global.channels);
+ session->ust_session->domain_global.channels);
+ rcu_read_unlock();
}
DBG3("Number of UST global channels %zd", nb_chan);
if (nb_chan < 0) {
}
DBG3("Number of UST global channels %zd", nb_chan);
if (nb_chan < 0) {
This page took
0.023528 seconds
and
4
git commands to generate.