]> git.hungrycats.org Git - linux/commitdiff
rcutrace: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:16:35 +0000 (00:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:08:25 +0000 (20:08 -0700)
commit 7ee2b9e56495c56dcaffa2bab19b39451d9fdc8a upstream.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/rcutree_trace.c

index 0d095dcaa6708b8517153bf604cf70762ea28323..93f8e8fbfbc6c896feb56382dcfb1870a605dd30 100644 (file)
@@ -97,7 +97,7 @@ static const struct file_operations rcubarrier_fops = {
        .open = rcubarrier_open,
        .read = seq_read,
        .llseek = no_llseek,
-       .release = seq_release,
+       .release = single_release,
 };
 
 #ifdef CONFIG_RCU_BOOST
@@ -208,7 +208,7 @@ static const struct file_operations rcuexp_fops = {
        .open = rcuexp_open,
        .read = seq_read,
        .llseek = no_llseek,
-       .release = seq_release,
+       .release = single_release,
 };
 
 #ifdef CONFIG_RCU_BOOST
@@ -308,7 +308,7 @@ static const struct file_operations rcuhier_fops = {
        .open = rcuhier_open,
        .read = seq_read,
        .llseek = no_llseek,
-       .release = seq_release,
+       .release = single_release,
 };
 
 static void show_one_rcugp(struct seq_file *m, struct rcu_state *rsp)
@@ -350,7 +350,7 @@ static const struct file_operations rcugp_fops = {
        .open = rcugp_open,
        .read = seq_read,
        .llseek = no_llseek,
-       .release = seq_release,
+       .release = single_release,
 };
 
 static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp)