ia64: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:09:04 +0000 (00:09 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:09:04 +0000 (00:09 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/kernel/palinfo.c
arch/ia64/kernel/salinfo.c
arch/ia64/sn/kernel/sn2/prominfo_proc.c

index b17129e..2b3c2d7 100644 (file)
@@ -929,7 +929,7 @@ static const struct file_operations proc_palinfo_fops = {
        .open           = proc_palinfo_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static void __cpuinit
index 5035245..4bc580a 100644 (file)
@@ -694,7 +694,7 @@ static const struct file_operations proc_salinfo_fops = {
        .open           = proc_salinfo_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 module_init(salinfo_init);
index daa8d6b..ec4de2b 100644 (file)
@@ -149,7 +149,7 @@ static const struct file_operations proc_fit_fops = {
        .open           = proc_fit_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static int proc_version_show(struct seq_file *m, void *v)
@@ -183,7 +183,7 @@ static const struct file_operations proc_version_fops = {
        .open           = proc_version_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 /* module entry points */