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.6.1~91 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e3cef9cabebc0a98eba742e83e751ae261730615;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 ba92da87d..a9628a770 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1224,7 +1224,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; } /*