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 cee61f764ce192350583154df8e40d808ef7edac..ef5e3e1f01b5e62977a48f116f8f2ceb3b72522b 100644
(file)
--- a/
src/bin/lttng-sessiond/context.c
+++ b/
src/bin/lttng-sessiond/context.c
@@
-223,6
+223,8
@@
int context_ust_add(struct ltt_ust_session *usess, int domain,
struct lttng_ht *chan_ht;
struct ltt_ust_channel *uchan = NULL;
+ rcu_read_lock();
+
/*
* Define which channel's hashtable to use from the domain or quit if
* unknown domain.
@@
-285,5
+287,6
@@
int context_ust_add(struct ltt_ust_session *usess, int domain,
}
error:
+ rcu_read_unlock();
return ret;
}
This page took
0.02586 seconds
and
4
git commands to generate.