From: Jérémie Galarneau Date: Thu, 16 Jul 2015 17:02:47 +0000 (-0400) Subject: Fix: Unbalanced rcu_read_unlock() on directory creation failure X-Git-Tag: v2.5.5~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f0938f47a886f4e0ba131867ba727e0164d44119;p=lttng-tools.git Fix: Unbalanced rcu_read_unlock() on directory 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 8ab60d4cd..db4777904 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1222,7 +1222,7 @@ int relay_add_stream(struct lttcomm_relayd_hdr *recv_hdr, ret = utils_mkdir_recursive(stream->path_name, S_IRWXU | S_IRWXG); if (ret < 0) { ERR("relay creating output directory"); - goto end; + goto err_free_stream; } /*