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.7.0-rc2~183 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=64171fcb2749f3ac352c96e52487b70e5f748978;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; } /*