From: Mathieu Desnoyers Date: Fri, 4 Sep 2015 05:12:53 +0000 (-0400) Subject: Fix: use after free in channel release X-Git-Tag: v2.8.0-rc1~82 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=a33814173aed88ebfe6e8653adb9db4d94927132 Fix: use after free in channel release Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-abi.c b/lttng-abi.c index 79d6e7ff..3c7cd5b4 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -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;