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.7.0-rc2~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9adb2e2253bdb5edf43efdd75f09df883ab1a7dc;p=lttng-modules.git Fix: use after free in channel release Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-abi.c b/lttng-abi.c index 8f63ad94..bc0a0f6e 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;