aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/irixelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/irixelf.c')
-rw-r--r--arch/mips/kernel/irixelf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/kernel/irixelf.c b/arch/mips/kernel/irixelf.c
index 5a3fe43e3019..b997af713eb3 100644
--- a/arch/mips/kernel/irixelf.c
+++ b/arch/mips/kernel/irixelf.c
@@ -44,7 +44,7 @@
44static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs); 44static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs);
45static int load_irix_library(struct file *); 45static int load_irix_library(struct file *);
46static int irix_core_dump(long signr, struct pt_regs * regs, 46static int irix_core_dump(long signr, struct pt_regs * regs,
47 struct file *file); 47 struct file *file, unsigned long limit);
48 48
49static struct linux_binfmt irix_format = { 49static struct linux_binfmt irix_format = {
50 .module = THIS_MODULE, 50 .module = THIS_MODULE,
@@ -1091,7 +1091,7 @@ end_coredump:
1091 * and then they are actually written out. If we run out of core limit 1091 * and then they are actually written out. If we run out of core limit
1092 * we just truncate. 1092 * we just truncate.
1093 */ 1093 */
1094static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file) 1094static int irix_core_dump(long signr, struct pt_regs *regs, struct file *file, unsigned long limit)
1095{ 1095{
1096 int has_dumped = 0; 1096 int has_dumped = 0;
1097 mm_segment_t fs; 1097 mm_segment_t fs;
@@ -1101,7 +1101,6 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file)
1101 struct vm_area_struct *vma; 1101 struct vm_area_struct *vma;
1102 struct elfhdr elf; 1102 struct elfhdr elf;
1103 off_t offset = 0, dataoff; 1103 off_t offset = 0, dataoff;
1104 int limit = current->signal->rlim[RLIMIT_CORE].rlim_cur;
1105 int numnote = 3; 1104 int numnote = 3;
1106 struct memelfnote notes[3]; 1105 struct memelfnote notes[3];
1107 struct elf_prstatus prstatus; /* NT_PRSTATUS */ 1106 struct elf_prstatus prstatus; /* NT_PRSTATUS */