From: Mathieu Desnoyers Date: Fri, 21 Nov 2014 17:38:37 +0000 (+0100) Subject: Fix: relayd: unbalanced RCU read-side lock/unlock X-Git-Tag: v2.4.3~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1ab3bf054ba4bdcdfe9753bd2d62a45ab68b8770;p=lttng-tools.git Fix: relayd: unbalanced RCU read-side lock/unlock Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index b0d53dfc8..a43ff7880 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1319,7 +1319,7 @@ int viewer_get_next_index(struct relay_connection *conn) ret = check_index_status(vstream, rstream, ctf_trace, &viewer_index); pthread_mutex_unlock(&rstream->viewer_stream_rotation_lock); if (ret < 0) { - goto end; + goto end_unlock; } else if (ret == 1) { /* * This means the viewer index data structure has been populated by the