cris: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:07:52 +0000 (00:07 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:07:52 +0000 (00:07 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/cris/arch-v10/kernel/fasttimer.c
arch/cris/arch-v32/kernel/fasttimer.c

index ce6f512968a4dd3457c84fd8305351a012611fc1..48a59afbeeb1e506550d85d34daf284df214a959 100644 (file)
@@ -644,7 +644,7 @@ static const struct file_operations proc_fasttimer_fops = {
        .open           = proc_fasttimer_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 #endif /* PROC_FS */
 
index e43dd70acd96325071b8b333aae616cf0cf6eac3..f6644535b17e199637f810b8fcbea2fcef548b0c 100644 (file)
@@ -616,7 +616,7 @@ static const struct file_operations proc_fasttimer_fops = {
        .open           = proc_fasttimer_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 #endif /* PROC_FS */