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.5.5~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=749617657f5884c3d5e0d16e384f837101f4474a;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 db4777904..e957a9bda 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1233,7 +1233,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) {