Browse Source

arm: single_open() leaks

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 12 years ago
parent
commit
b11ac20eca
2 changed files with 2 additions and 2 deletions
  1. 1 1
      arch/arm/kernel/swp_emulate.c
  2. 1 1
      arch/arm/mach-omap1/pm.c

+ 1 - 1
arch/arm/kernel/swp_emulate.c

@@ -99,7 +99,7 @@ static const struct file_operations proc_status_fops = {
 	.open		= proc_status_open,
 	.read		= seq_read,
 	.llseek		= seq_lseek,
-	.release	= seq_release,
+	.release	= single_release,
 };
 #endif
 

+ 1 - 1
arch/arm/mach-omap1/pm.c

@@ -557,7 +557,7 @@ static const struct file_operations omap_pm_debug_fops = {
 	.open		= omap_pm_debug_open,
 	.read		= seq_read,
 	.llseek		= seq_lseek,
-	.release	= seq_release,
+	.release	= single_release,
 };
 
 static void omap_pm_init_debugfs(void)