OSDN Git Service

rtc: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:12:29 +0000 (00:12 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:12:29 +0000 (00:12 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/efirtc.c
drivers/char/genrtc.c

index ea54a6e..e39e740 100644 (file)
@@ -369,7 +369,7 @@ static const struct file_operations efi_rtc_proc_fops = {
        .open           = efi_rtc_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static int __init 
index bc9b84d..4f94375 100644 (file)
@@ -465,7 +465,7 @@ static const struct file_operations gen_rtc_proc_fops = {
        .open           = gen_rtc_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static int __init gen_rtc_proc_init(void)