]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:07:22 +0000 (00:07 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:07:22 +0000 (00:07 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/arm/kernel/swp_emulate.c
arch/arm/mach-omap1/pm.c

index 087fc321e9e5e52d37f1b61e4b0bc461b43f8442..b1b89882b113fb26ecc93a30888ec63c4b3fc84b 100644 (file)
@@ -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
 
index dd712f10973888b0952b80bd15c4f903b48b748b..358b82cb9f7876482c29d97653a7d2921c87852f 100644 (file)
@@ -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)