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 ea54a6e3f5adfa5311eaccb03d09571961beeee9..e39e7402e62380811197141cd073962cc3e449bf 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 bc9b84d56ee4aed6f8e83ede52039f6f5ffa0def..4f943759d37699a1ec364c290c58594a543bffce 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)