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

index a9628a770fe139fd6bef91e27c8ac85824f76930..a0d82b0cb6534b7b688957459478e07236831b70 100644 (file)
@@ -1235,7 +1235,7 @@ int relay_add_stream(struct lttcomm_relayd_hdr *recv_hdr,
                        stream->tracefile_size, 0, relayd_uid, relayd_gid, NULL);
        if (ret < 0) {
                ERR("Create output file");
-               goto end;
+               goto err_free_stream;
        }
        stream->fd = ret;
        if (stream->tracefile_size) {
This page took 0.02801 seconds and 4 git commands to generate.