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:28:18 +0000 (12:28 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

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