summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/common/linux_exec.c')
-rw-r--r--sys/compat/linux/common/linux_exec.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/compat/linux/common/linux_exec.c b/sys/compat/linux/common/linux_exec.c
index dd6e57d5251..cffe7e4c65c 100644
--- a/sys/compat/linux/common/linux_exec.c
+++ b/sys/compat/linux/common/linux_exec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec.c,v 1.94 2007/03/09 14:11:28 ad Exp $ */
+/* $NetBSD: linux_exec.c,v 1.95 2007/04/22 08:29:57 dsl Exp $ */
/*-
* Copyright (c) 1994, 1995, 1998, 2000, 2007 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.94 2007/03/09 14:11:28 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.95 2007/04/22 08:29:57 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -103,12 +103,7 @@ linux_sys_execve(l, v, retval)
syscallarg(char **) argv;
syscallarg(char **) envp;
} */ *uap = v;
- struct proc *p = l->l_proc;
struct sys_execve_args ap;
- void *sg;
-
- sg = stackgap_init(p, 0);
- CHECK_ALT_EXIST(l, &sg, SCARG(uap, path));
SCARG(&ap, path) = SCARG(uap, path);
SCARG(&ap, argp) = SCARG(uap, argp);