aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r--fs/binfmt_elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 00fd9c969a27..35c4886dae2d 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -2152,11 +2152,11 @@ static int elf_core_dump(struct coredump_params *cprm)
2152 if (!dump_emit(cprm, &phdr, sizeof(phdr))) 2152 if (!dump_emit(cprm, &phdr, sizeof(phdr)))
2153 goto end_coredump; 2153 goto end_coredump;
2154 } 2154 }
2155 size = cprm->written;
2156 2155
2157 if (!elf_core_write_extra_phdrs(cprm->file, offset, &size, cprm->limit)) 2156 if (!elf_core_write_extra_phdrs(cprm, offset))
2158 goto end_coredump; 2157 goto end_coredump;
2159 2158
2159 size = cprm->written;
2160 cprm->written = foffset; /* will disappear */ 2160 cprm->written = foffset; /* will disappear */
2161 /* write out the notes section */ 2161 /* write out the notes section */
2162 if (!write_note_info(&info, cprm)) 2162 if (!write_note_info(&info, cprm))