Fix: use after free in channel release
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 Sep 2015 05:12:53 +0000 (01:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 Sep 2015 05:13:20 +0000 (01:13 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-abi.c

index 79d6e7ffd1cb24ad242fe4d52fbe7c0065d02f62..3c7cd5b4fd9f0c936a6e4b59504e7bfb724cc3a2 100644 (file)
@@ -1286,8 +1286,8 @@ int lttng_metadata_channel_release(struct inode *inode, struct file *file)
        struct lttng_channel *channel = file->private_data;
 
        if (channel) {
-               lttng_metadata_channel_destroy(channel);
                fput(channel->session->file);
+               lttng_metadata_channel_destroy(channel);
        }
 
        return 0;
This page took 0.025855 seconds and 4 git commands to generate.