diff options
| author | Li Zefan <[email protected]> | 2008-06-24 05:30:23 +0000 |
|---|---|---|
| committer | Paul Mundt <[email protected]> | 2008-07-28 09:10:27 +0000 |
| commit | 45dabf1427a0a876f733b07239ade1bdb0e06010 (patch) | |
| tree | 0bcec487028dcb802a5c2ccf0e790f5b48745bac /arch/sh/mm/cache-debugfs.c | |
| parent | Merge branch 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 (diff) | |
| download | kernel-45dabf1427a0a876f733b07239ade1bdb0e06010.tar.gz kernel-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 <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
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 = { .open = cache_debugfs_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = single_release, }; static int __init cache_debugfs_init(void) |
