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:51 +0000 (01:13 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-abi.c

index a9e8d1d0423f4120144808585773c2234649a67e..5bd7621f13ff5c503a55a4e57ada5b5e5678a451 100644 (file)
@@ -1198,8 +1198,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.026432 seconds and 4 git commands to generate.