From: Jérémie Galarneau Date: Thu, 16 Jul 2015 17:04:05 +0000 (-0400) Subject: Fix: Unbalanced rcu_read_unlock() on stream file creation failure X-Git-Tag: v2.8.0-rc1~550 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0c0e3b4112d52fb54a844300b36f1373e3055c8f;p=lttng-tools.git Fix: Unbalanced rcu_read_unlock() on stream file creation failure Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 1508c7c30..537ef8778 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1300,7 +1300,7 @@ int relay_add_stream(struct lttcomm_relayd_hdr *recv_hdr, stream->tracefile_size, 0, relayd_uid, relayd_gid, NULL); if (ret < 0) { ERR("Create output file"); - goto end; + goto err_free_stream; } stream->fd = ret; if (stream->tracefile_size) {