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 20:31:36 +0000 (16:31 -0400)
commita1c672ba261e6d903b6021cba87661074bba4bd1
tree74a97ea58c37b69d6158a0a13707ac3e3c92dcb0
parente69067f243ada6fa8a8d87df23ae80b1090833d4
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.025032 seconds and 4 git commands to generate.