Commit 7ee2b9e5 authored by Al Viro's avatar Al Viro

rcutrace: single_open() leaks

Cc: stable@vger.kernel.org
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 962a1ab2
...@@ -95,7 +95,7 @@ static const struct file_operations rcubarrier_fops = { ...@@ -95,7 +95,7 @@ static const struct file_operations rcubarrier_fops = {
.open = rcubarrier_open, .open = rcubarrier_open,
.read = seq_read, .read = seq_read,
.llseek = no_llseek, .llseek = no_llseek,
.release = seq_release, .release = single_release,
}; };
#ifdef CONFIG_RCU_BOOST #ifdef CONFIG_RCU_BOOST
...@@ -206,7 +206,7 @@ static const struct file_operations rcuexp_fops = { ...@@ -206,7 +206,7 @@ static const struct file_operations rcuexp_fops = {
.open = rcuexp_open, .open = rcuexp_open,
.read = seq_read, .read = seq_read,
.llseek = no_llseek, .llseek = no_llseek,
.release = seq_release, .release = single_release,
}; };
#ifdef CONFIG_RCU_BOOST #ifdef CONFIG_RCU_BOOST
...@@ -306,7 +306,7 @@ static const struct file_operations rcuhier_fops = { ...@@ -306,7 +306,7 @@ static const struct file_operations rcuhier_fops = {
.open = rcuhier_open, .open = rcuhier_open,
.read = seq_read, .read = seq_read,
.llseek = no_llseek, .llseek = no_llseek,
.release = seq_release, .release = single_release,
}; };
static void show_one_rcugp(struct seq_file *m, struct rcu_state *rsp) static void show_one_rcugp(struct seq_file *m, struct rcu_state *rsp)
...@@ -348,7 +348,7 @@ static const struct file_operations rcugp_fops = { ...@@ -348,7 +348,7 @@ static const struct file_operations rcugp_fops = {
.open = rcugp_open, .open = rcugp_open,
.read = seq_read, .read = seq_read,
.llseek = no_llseek, .llseek = no_llseek,
.release = seq_release, .release = single_release,
}; };
static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp) static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment