Fix: relayd: double unlock on viewer stream creation error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jul 2020 16:14:21 +0000 (12:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jul 2020 16:14:21 +0000 (12:14 -0400)
commit71381736573d0779956f4a0bc7d206acc98cd3cb
tree0e8279b42a3eb2c721bc2844ee3739e913a4ce7b
parent9edaf114d28249f4740de16bc9f58c43cfe8042e
Fix: relayd: double unlock on viewer stream creation error

viewer_stream_create must be called with the relay stream's
lock held since 9edaf114d. A call to pthread_mutex_unlock
was forgotten in the error path of viewer_stream_create resulting
in a double-unlock in some error scenarios.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I613f67440669af52f625b7bdc4e9ae6ce75956ea
src/bin/lttng-relayd/viewer-stream.c
This page took 0.026104 seconds and 4 git commands to generate.