h8300: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:08:26 +0000 (00:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:08:26 +0000 (00:08 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/h8300/kernel/gpio.c

index b02c752cd3265996cb1bf878174cf3d8f5138255..084bfd0c107e98d753168b50beeb0ddbdcfdafc2 100644 (file)
@@ -161,7 +161,7 @@ static const struct file_operations gpio_proc_fops = {
        .open           = gpio_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static __init int register_proc(void)