VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Brian Pomerantz <bapper@piratehaven.org> 2007-04-01 23:49:41 -0700 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2007-04-02 10:06:08 -0700 commit: 03221702608c60b470fc86a23bdf4bc30e5bd59f parent: 2400ff77e7025bf6ffb71afdcbfbdd9aa47dfc36
Commit Summary:
[PATCH] fix page leak during core dump
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index 47d6d49d1fb9..f3ddca4a387b 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -1480,8 +1480,8 @@ static int elf_fdpic_dump_segments(struct file *file, struct mm_struct *mm,
 				DUMP_SEEK(file->f_pos + PAGE_SIZE);
 			}
 			else if (page == ZERO_PAGE(addr)) {
-				DUMP_SEEK(file->f_pos + PAGE_SIZE);
 				page_cache_release(page);
+				DUMP_SEEK(file->f_pos + PAGE_SIZE);
 			}
 			else {
 				void *kaddr;