X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=fs%2Fbinfmt_elf.c;h=a7a28110dc80aa9df1e700d9c24aa297161ab996;hb=f939a5f432981872f89d4dfe506e959f49cc161a;hp=e158b22ef32f16d2fcf61c29fbf6d15a65581c1e;hpb=9503427e916aea7ec2cc429504f82d7200ab4bcd;p=deliverable%2Flinux.git diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index e158b22ef32f..a7a28110dc80 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -2275,7 +2275,7 @@ static int elf_core_dump(struct coredump_params *cprm) goto end_coredump; /* Align to page */ - if (!dump_skip(cprm, dataoff - cprm->file->f_pos)) + if (!dump_skip(cprm, dataoff - cprm->pos)) goto end_coredump; for (i = 0, vma = first_vma(current, gate_vma); vma != NULL;