aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/kernel/elfcore.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/ia64/kernel/elfcore.c b/arch/ia64/kernel/elfcore.c
index 798ce543da4b..04bc8fd5f893 100644
--- a/arch/ia64/kernel/elfcore.c
+++ b/arch/ia64/kernel/elfcore.c
@@ -40,8 +40,7 @@ int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
40 return 1; 40 return 1;
41} 41}
42 42
43int elf_core_write_extra_data(struct file *file, size_t *size, 43int elf_core_write_extra_data(struct coredump_params *cprm)
44 unsigned long limit)
45{ 44{
46 const struct elf_phdr *const gate_phdrs = 45 const struct elf_phdr *const gate_phdrs =
47 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); 46 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff);
@@ -52,8 +51,7 @@ int elf_core_write_extra_data(struct file *file, size_t *size,
52 void *addr = (void *)gate_phdrs[i].p_vaddr; 51 void *addr = (void *)gate_phdrs[i].p_vaddr;
53 size_t memsz = PAGE_ALIGN(gate_phdrs[i].p_memsz); 52 size_t memsz = PAGE_ALIGN(gate_phdrs[i].p_memsz);
54 53
55 *size += memsz; 54 if (!dump_emit(cprm, addr, memsz))
56 if (*size > limit || !dump_write(file, addr, memsz))
57 return 0; 55 return 0;
58 break; 56 break;
59 } 57 }