diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-05 17:50:15 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-09 00:16:23 -0500 |
commit | aa3e7eaf0a0f06edd2b733e84e7e8ffe108e8786 (patch) | |
tree | a4adeb88d0b1ae710a4113e55db7064895a3e70d /fs/binfmt_elf.c | |
parent | 506f21c556c747bb07b893f146220ec45cda381b (diff) |
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.c')
-rw-r--r-- | fs/binfmt_elf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 35c4886dae2d..a998b221b53a 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -2196,8 +2196,10 @@ static int elf_core_dump(struct coredump_params *cprm) | |||
2196 | } | 2196 | } |
2197 | } | 2197 | } |
2198 | 2198 | ||
2199 | if (!elf_core_write_extra_data(cprm->file, &size, cprm->limit)) | 2199 | cprm->written = size; |
2200 | if (!elf_core_write_extra_data(cprm)) | ||
2200 | goto end_coredump; | 2201 | goto end_coredump; |
2202 | size = cprm->written; | ||
2201 | 2203 | ||
2202 | if (e_phnum == PN_XNUM) { | 2204 | if (e_phnum == PN_XNUM) { |
2203 | size += sizeof(*shdr4extnum); | 2205 | size += sizeof(*shdr4extnum); |