parisc: single_open() leaks
authorAl Viro <[email protected]>
Sun, 5 May 2013 04:09:44 +0000 (00:09 -0400)
committerAl Viro <[email protected]>
Sun, 5 May 2013 04:10:41 +0000 (00:10 -0400)
Cc: [email protected]
Signed-off-by: Al Viro <[email protected]>
arch/parisc/kernel/pdc_chassis.c

index 8fa314fbfb18bb9a8bc3e0e03da02cd8b92be9c1..3e04242de5a7a65b8770570101cb174349e02e7f 100644 (file)
@@ -275,7 +275,7 @@ static const struct file_operations pdc_chassis_warn_fops = {
        .open           = pdc_chassis_warn_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static int __init pdc_chassis_create_procfs(void)