]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
input: single_open() leak
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:12:56 +0000 (00:12 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:12:56 +0000 (00:12 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/input/misc/hp_sdc_rtc.c

index 770479df865742a3c0d2beaa58291945f6501868..86b822806e95b504f9f4b23303365cff0d6b6a1d 100644 (file)
@@ -515,7 +515,7 @@ static const struct file_operations hp_sdc_rtc_proc_fops = {
        .open           = hp_sdc_rtc_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static int hp_sdc_rtc_ioctl(struct file *file,