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.8.0-rc1~551 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f4bcfe6a1047271eac05653b49803683b22ff834;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 2d3714e68..1508c7c30 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1289,7 +1289,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; } /*