Fix: Unbalanced rcu_read_unlock() on directory creation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jul 2015 17:02:47 +0000 (13:02 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 3 Aug 2015 16:06:13 +0000 (12:06 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index ba92da87d2920028a47076c92f56a77d27ddff99..a9628a770fe139fd6bef91e27c8ac85824f76930 100644 (file)
@@ -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;
        }
 
        /*
This page took 0.027079 seconds and 4 git commands to generate.