aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/pmb.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-06-24 13:30:23 +0800
committerPaul Mundt <lethal@linux-sh.org>2008-07-28 18:10:27 +0900
commit45dabf1427a0a876f733b07239ade1bdb0e06010 (patch)
tree0bcec487028dcb802a5c2ccf0e790f5b48745bac /arch/sh/mm/pmb.c
parentMerge branch 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 (diff)
downloadlinux-dev-45dabf1427a0a876f733b07239ade1bdb0e06010.tar.xz
linux-dev-45dabf1427a0a876f733b07239ade1bdb0e06010.zip
sh: fix seq_file memory leak
When using single_open(), single_release() should be used instead of seq_release(), otherwise there is a memory leak. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/pmb.c')
-rw-r--r--arch/sh/mm/pmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c
index 46911bcbf17b..cef727669c87 100644
--- a/arch/sh/mm/pmb.c
+++ b/arch/sh/mm/pmb.c
@@ -385,7 +385,7 @@ static const struct file_operations pmb_debugfs_fops = {
.open = pmb_debugfs_open,
.read = seq_read,
.llseek = seq_lseek,
- .release = seq_release,
+ .release = single_release,
};
static int __init pmb_debugfs_init(void)