From 27cfca1ec98e91261b1a5355d10a8996464b63af Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 17 Mar 1998 22:05:47 +0000 Subject: Look Ma' what I found on my harddisk ... o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ... --- fs/exec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'fs/exec.c') diff --git a/fs/exec.c b/fs/exec.c index a358a3c45..f023054c6 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -334,7 +334,7 @@ unsigned long setup_arg_pages(unsigned long p, struct linux_binprm * bprm) mpnt->vm_flags = VM_STACK_FLAGS; mpnt->vm_ops = NULL; mpnt->vm_offset = 0; - mpnt->vm_dentry = NULL; + mpnt->vm_file = NULL; mpnt->vm_pte = 0; insert_vm_struct(current->mm, mpnt); current->mm->total_vm = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT; @@ -522,7 +522,7 @@ int flush_old_exec(struct linux_binprm * bprm) * Release all of the old mmap stuff */ retval = exec_mmap(); - if (retval) goto flush_failed; + if (retval) goto mmap_failed; /* This is the point of no return */ release_old_signals(oldsig); @@ -550,6 +550,9 @@ int flush_old_exec(struct linux_binprm * bprm) return 0; +mmap_failed: + if (current->sig != oldsig) + kfree(current->sig); flush_failed: current->sig = oldsig; return retval; -- cgit v1.2.3