patch-2.3.5 linux/fs/binfmt_aout.c
Next file: linux/fs/binfmt_elf.c
Previous file: linux/drivers/video/fbcmap.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed Jun 2 13:49:49 1999
- Orig file:
v2.3.4/linux/fs/binfmt_aout.c
- Orig date:
Mon May 31 22:28:06 1999
diff -u --recursive --new-file v2.3.4/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
@@ -307,7 +307,6 @@
struct file * file;
int fd;
unsigned long error;
- unsigned long p = bprm->p;
unsigned long fd_offset;
unsigned long rlim;
int retval;
@@ -468,14 +467,18 @@
set_brk(current->mm->start_brk, current->mm->brk);
- p = setup_arg_pages(p, bprm);
+ retval = setup_arg_pages(bprm);
+ if (retval < 0) {
+ /* Someone check-me: is this error path enough? */
+ send_sig(SIGKILL, current, 0);
+ return retval;
+ }
- p = (unsigned long) create_aout_tables((char *)p, bprm);
- current->mm->start_stack = p;
+ current->mm->start_stack = create_aout_tables(bprm->p, bprm);
#ifdef __alpha__
regs->gp = ex.a_gpvalue;
#endif
- start_thread(regs, ex.a_entry, p);
+ start_thread(regs, ex.a_entry, current->mm->start_stack);
if (current->flags & PF_PTRACED)
send_sig(SIGTRAP, current, 0);
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)