]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rcutrace: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:16:35 +0000 (00:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:16:35 +0000 (00:16 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/rcutree_trace.c

index 49099e81c87b1d151768124e572d1f3fb77890ce..cf6c174129321b71b5e9cffb60bf7c6c608f4c3d 100644 (file)
@@ -95,7 +95,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
@@ -206,7 +206,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
@@ -306,7 +306,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)
@@ -348,7 +348,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)