Skip to contentSkip to conversation

Fix: relayd: unbalanced RCU read-side lock/unlock

PATCH Jérémie Galarneau 1 participant 1 message Nov 27, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged all the way to 2.4, thanks!

Jérémie

Quoted 21 lines · Mathieu Desnoyers
---
 src/bin/lttng-relayd/live.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/bin/lttng-relayd/live.c +1 -2
index a76f530..93d458b 100644
@@ -1318,7 +1318,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
--

2.1.1

Signature · 8 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev