Fix: relayd: return from function without unlocking session lock
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 22:58:56 +0000 (17:58 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 22:58:56 +0000 (17:58 -0500)
commit881881996ba715d8598ba78ad16ba07ce9e289f3
tree920ec96f10d9728dbc94b7a8e3f123e1685d14dc
parentc585b4b94a2f517485cdf1c2f3efe8d26e44b05d
Fix: relayd: return from function without unlocking session lock

Some error paths in relay_close_trace_chunk() skip the unlock
of the relay_session's lock.

412203 Missing unlock

May result in deadlock if there is another attempt to acquire the
lock.

In relay_close_trace_chunk: Missing a release of a lock on a
path (CWE-667)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I43187959abf00e761f7a255f4af7cd53e0c451fb
src/bin/lttng-relayd/main.c
This page took 0.024531 seconds and 4 git commands to generate.