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>
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 1508c7c302256a9a72035ecbdc4ef3eeb54564de..537ef877882ad5ac9e006c94f9979e3a928fb925 100644 (file)
@@ -1300,7 +1300,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.025125 seconds and 4 git commands to generate.