cris: single_open() leaks
Al Viro [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 ce6f512..48a59af 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 e43dd70..f664453 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 */