diff options
Diffstat (limited to 'arch/arm/kernel/sys_arm.c')
-rw-r--r-- | arch/arm/kernel/sys_arm.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index c8e729efc18..c2a898aa57a 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c | |||
@@ -59,26 +59,6 @@ asmlinkage int sys_vfork(struct pt_regs *regs) | |||
59 | return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->ARM_sp, regs, 0, NULL, NULL); | 59 | return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->ARM_sp, regs, 0, NULL, NULL); |
60 | } | 60 | } |
61 | 61 | ||
62 | /* sys_execve() executes a new program. | ||
63 | * This is called indirectly via a small wrapper | ||
64 | */ | ||
65 | asmlinkage int sys_execve(const char __user *filenamei, | ||
66 | const char __user *const __user *argv, | ||
67 | const char __user *const __user *envp, struct pt_regs *regs) | ||
68 | { | ||
69 | int error; | ||
70 | char * filename; | ||
71 | |||
72 | filename = getname(filenamei); | ||
73 | error = PTR_ERR(filename); | ||
74 | if (IS_ERR(filename)) | ||
75 | goto out; | ||
76 | error = do_execve(filename, argv, envp, regs); | ||
77 | putname(filename); | ||
78 | out: | ||
79 | return error; | ||
80 | } | ||
81 | |||
82 | /* | 62 | /* |
83 | * Since loff_t is a 64 bit type we avoid a lot of ABI hassle | 63 | * Since loff_t is a 64 bit type we avoid a lot of ABI hassle |
84 | * with a different argument ordering. | 64 | * with a different argument ordering. |