projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: add missing rcu lock for UST lookup
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
context.c
diff --git
a/src/bin/lttng-sessiond/context.c
b/src/bin/lttng-sessiond/context.c
index c1b7410da00020dc541313326892d850e6810b28..46e1b344612e1f8af58a1117ec214c112b0a05b3 100644
(file)
--- a/
src/bin/lttng-sessiond/context.c
+++ b/
src/bin/lttng-sessiond/context.c
@@
-241,6
+241,8
@@
int context_ust_add(struct ltt_ust_session *usess, int domain,
assert(ctx);
assert(channel_name);
+ rcu_read_lock();
+
/*
* Define which channel's hashtable to use from the domain or quit if
* unknown domain.
@@
-303,5
+305,6
@@
int context_ust_add(struct ltt_ust_session *usess, int domain,
}
error:
+ rcu_read_unlock();
return ret;
}
This page took
0.023884 seconds
and
4
git commands to generate.