diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-06-24 01:30:23 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 05:10:27 -0400 |
commit | 45dabf1427a0a876f733b07239ade1bdb0e06010 (patch) | |
tree | 0bcec487028dcb802a5c2ccf0e790f5b48745bac /arch/sh/mm/cache-debugfs.c | |
parent | c9272c4f9fbe2087beb3392f526dc5b19efaa56b (diff) |
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/cache-debugfs.c')
-rw-r--r-- | arch/sh/mm/cache-debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/cache-debugfs.c b/arch/sh/mm/cache-debugfs.c index c5b56d52b7d2..0e189ccd4a77 100644 --- a/arch/sh/mm/cache-debugfs.c +++ b/arch/sh/mm/cache-debugfs.c | |||
@@ -120,7 +120,7 @@ static const struct file_operations cache_debugfs_fops = { | |||
120 | .open = cache_debugfs_open, | 120 | .open = cache_debugfs_open, |
121 | .read = seq_read, | 121 | .read = seq_read, |
122 | .llseek = seq_lseek, | 122 | .llseek = seq_lseek, |
123 | .release = seq_release, | 123 | .release = single_release, |
124 | }; | 124 | }; |
125 | 125 | ||
126 | static int __init cache_debugfs_init(void) | 126 | static int __init cache_debugfs_init(void) |