]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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 b17129e3b7c83a0d07587c506ef8ada1c009e08f..2b3c2d79256f9343469ad0428ef4eb1f9434028c 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 5035245cb258cf9e6af07b071be0c481d64da1de..4bc580af67b3995dbfb4772adfc7336807032197 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 daa8d6badb160848659cddaed0b897b55a504deb..ec4de2b09653d8b0809514d721fb3b28b27ff0d3 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 */