projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ust_app_find_by_pid: move rcu_read_unlock to error label
[lttng-tools.git]
/
lttng-sessiond
/
ust-app.c
diff --git
a/lttng-sessiond/ust-app.c
b/lttng-sessiond/ust-app.c
index 0cc19481cb6bb722e2b33d8e481cb17a84165d30..99fd84f3e07ca5982875ab257dd7f2146d9c225f 100644
(file)
--- a/
lttng-sessiond/ust-app.c
+++ b/
lttng-sessiond/ust-app.c
@@
-151,7
+151,6
@@
struct ust_app *ust_app_find_by_pid(pid_t pid)
node = hashtable_lookup(ust_app_ht,
(void *)((unsigned long) pid), sizeof(void *), &iter);
if (node == NULL) {
node = hashtable_lookup(ust_app_ht,
(void *)((unsigned long) pid), sizeof(void *), &iter);
if (node == NULL) {
- rcu_read_unlock();
DBG2("UST app no found with pid %d", pid);
goto error;
}
DBG2("UST app no found with pid %d", pid);
goto error;
}
@@
-162,6
+161,7
@@
struct ust_app *ust_app_find_by_pid(pid_t pid)
return caa_container_of(node, struct ust_app, node);
error:
return caa_container_of(node, struct ust_app, node);
error:
+ rcu_read_unlock();
return NULL;
}
return NULL;
}
This page took
0.027175 seconds
and
5
git commands to generate.