diff options
author | Omar Sandoval <osandov@fb.com> | 2016-05-12 01:16:36 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-12 23:55:50 +0300 |
commit | a00839395103d5e2d132a6c4a9680256580ed3d1 (patch) | |
tree | f45b3fdcdfcf65d722d3cf083527f876ebd1ea0d /fs/binfmt_elf.c | |
parent | 88ae4ab9802eaa8e400e611f85883143d89d6b61 (diff) | |
download | linux-a00839395103d5e2d132a6c4a9680256580ed3d1.tar.xz |
coredump: get rid of coredump_params->written
cprm->written is redundant with cprm->file->f_pos, so use that instead.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 7d914c67a9d0..f5ce8f4e00b0 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -2273,7 +2273,7 @@ static int elf_core_dump(struct coredump_params *cprm) goto end_coredump; /* Align to page */ - if (!dump_skip(cprm, dataoff - cprm->written)) + if (!dump_skip(cprm, dataoff - cprm->file->f_pos)) goto end_coredump; for (i = 0, vma = first_vma(current, gate_vma); vma != NULL; |