summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf_fdpic.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-10-05 17:22:57 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-11-09 00:16:23 -0500
commit506f21c556c747bb07b893f146220ec45cda381b (patch)
tree314bda008996a302a73779d522c349eb174dc8b9 /fs/binfmt_elf_fdpic.c
parentecc8c7725e6c21528329b34acae2a1d64b3af89b (diff)
downloadlinux-506f21c556c747bb07b893f146220ec45cda381b.tar.gz
linux-506f21c556c747bb07b893f146220ec45cda381b.tar.bz2
linux-506f21c556c747bb07b893f146220ec45cda381b.zip
switch elf_core_write_extra_phdrs() to dump_emit()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
-rw-r--r--fs/binfmt_elf_fdpic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index ea4c6273b4a5..44db8b92121a 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -1791,9 +1791,11 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm)
goto end_coredump;
}
- if (!elf_core_write_extra_phdrs(cprm->file, offset, &size, cprm->limit))
+ cprm->written = size;
+ if (!elf_core_write_extra_phdrs(cprm, offset))
goto end_coredump;
+ size = cprm->written;
/* write out the notes section */
for (i = 0; i < numnote; i++)
if (!writenote(notes + i, cprm->file, &foffset))