diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-08 09:26:08 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-09 00:16:26 -0500 |
commit | 9b56d54380adb5fef71f687109bbd6f8413d694f (patch) | |
tree | 006cd31736372a9f7c9d4e6d7b99a8dd1748d49a /fs/binfmt_elf.c | |
parent | 2507a4fbd48a96bc4236e584252635f8539079df (diff) |
dump_skip(): dump_seek() replacement taking coredump_params
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, 2 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 4f7dda9d86b5..c56ae3264a65 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -2162,7 +2162,7 @@ static int elf_core_dump(struct coredump_params *cprm) | |||
2162 | goto end_coredump; | 2162 | goto end_coredump; |
2163 | 2163 | ||
2164 | /* Align to page */ | 2164 | /* Align to page */ |
2165 | if (!dump_seek(cprm->file, dataoff - cprm->written)) | 2165 | if (!dump_skip(cprm, dataoff - cprm->written)) |
2166 | goto end_coredump; | 2166 | goto end_coredump; |
2167 | 2167 | ||
2168 | for (vma = first_vma(current, gate_vma); vma != NULL; | 2168 | for (vma = first_vma(current, gate_vma); vma != NULL; |
@@ -2183,7 +2183,7 @@ static int elf_core_dump(struct coredump_params *cprm) | |||
2183 | kunmap(page); | 2183 | kunmap(page); |
2184 | page_cache_release(page); | 2184 | page_cache_release(page); |
2185 | } else | 2185 | } else |
2186 | stop = !dump_seek(cprm->file, PAGE_SIZE); | 2186 | stop = !dump_skip(cprm, PAGE_SIZE); |
2187 | if (stop) | 2187 | if (stop) |
2188 | goto end_coredump; | 2188 | goto end_coredump; |
2189 | } | 2189 | } |