mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
dump_skip(): dump_seek() replacement taking coredump_params
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
2507a4fbd4
commit
9b56d54380
6 changed files with 22 additions and 43 deletions
|
@ -2162,7 +2162,7 @@ static int elf_core_dump(struct coredump_params *cprm)
|
|||
goto end_coredump;
|
||||
|
||||
/* Align to page */
|
||||
if (!dump_seek(cprm->file, dataoff - cprm->written))
|
||||
if (!dump_skip(cprm, dataoff - cprm->written))
|
||||
goto end_coredump;
|
||||
|
||||
for (vma = first_vma(current, gate_vma); vma != NULL;
|
||||
|
@ -2183,7 +2183,7 @@ static int elf_core_dump(struct coredump_params *cprm)
|
|||
kunmap(page);
|
||||
page_cache_release(page);
|
||||
} else
|
||||
stop = !dump_seek(cprm->file, PAGE_SIZE);
|
||||
stop = !dump_skip(cprm, PAGE_SIZE);
|
||||
if (stop)
|
||||
goto end_coredump;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue