
From: Prasanna Meda <pmeda@akamai.com>

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>
---

 25-akpm/fs/proc/kcore.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN fs/proc/kcore.c~proc_kcore-correct-double-accounting-of-elf_buflen fs/proc/kcore.c
--- 25/fs/proc/kcore.c~proc_kcore-correct-double-accounting-of-elf_buflen	2005-01-10 17:29:28.604538368 -0800
+++ 25-akpm/fs/proc/kcore.c	2005-01-10 17:29:28.607537912 -0800
@@ -264,8 +264,7 @@ read_kcore(struct file *file, char __use
 	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;
_
