diff options
author | Prasanna Meda <pmeda@akamai.com> | 2005-01-10 17:15:31 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-10 17:15:31 -0800 |
commit | 1d6c1c0b4caa7121d429ad702d3e97966eb38cef (patch) | |
tree | 08b6b52577915a2fb9623359ff5de220d8f46cd1 /fs | |
parent | b90c179998e1d68e6c57c4746b63d085ca6708f7 (diff) | |
download | history-1d6c1c0b4caa7121d429ad702d3e97966eb38cef.tar.gz |
[PATCH] proc_kcore: Correct double accounting of elf_buflen
Correct double accounting of elf_buflen in read_kcore:get_kcore_size().
Signed-off-by: Prasanna Meda <pmeda@akamai.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/kcore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 5cc4361de09aaa..0a71cf365ed8e7 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -264,8 +264,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) unsigned long start; read_lock(&kclist_lock); - tsz = get_kcore_size(&nphdr, &elf_buflen); - proc_root_kcore->size = size = tsz + elf_buflen; + proc_root_kcore->size = size = get_kcore_size(&nphdr, &elf_buflen); if (buflen == 0 || *fpos >= size) { read_unlock(&kclist_lock); return 0; |