diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-05 23:50:15 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-09 06:16:23 +0100 |
commit | aa3e7eaf0a0f06edd2b733e84e7e8ffe108e8786 (patch) | |
tree | a4adeb88d0b1ae710a4113e55db7064895a3e70d /fs/binfmt_elf_fdpic.c | |
parent | switch elf_core_write_extra_phdrs() to dump_emit() (diff) | |
download | linux-aa3e7eaf0a0f06edd2b733e84e7e8ffe108e8786.tar.xz linux-aa3e7eaf0a0f06edd2b733e84e7e8ffe108e8786.zip |
switch elf_core_write_extra_data() 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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index 44db8b92121a..77bf7e33e706 100644 --- a/fs/binfmt_elf_fdpic.c +++ b/fs/binfmt_elf_fdpic.c @@ -1818,8 +1818,10 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm) cprm->mm_flags) < 0) goto end_coredump; - if (!elf_core_write_extra_data(cprm->file, &size, cprm->limit)) + cprm->written = size; + if (!elf_core_write_extra_data(cprm)) goto end_coredump; + size = cprm->written; if (e_phnum == PN_XNUM) { size += sizeof(*shdr4extnum); |