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>
Thu, 16 Jul 2015 17:34:45 +0000 (13:34 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index 2d3714e684bccab1deba3b522de7b7de3333faa0..1508c7c302256a9a72035ecbdc4ef3eeb54564de 100644 (file)
@@ -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;
        }
 
        /*
This page took 0.035027 seconds and 4 git commands to generate.