commit | aa3e7eaf0a0f06edd2b733e84e7e8ffe108e8786 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Oct 05 17:50:15 2013 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sat Nov 09 00:16:23 2013 -0500 |
tree | a4adeb88d0b1ae710a4113e55db7064895a3e70d | |
parent | 506f21c556c747bb07b893f146220ec45cda381b [diff] [blame] |
switch elf_core_write_extra_data() to dump_emit() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 35c4886..a998b22 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c
@@ -2196,8 +2196,10 @@ } } - 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);