diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-10-25 03:10:52 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-10-25 18:00:44 -0400 |
commit | dc241f2c1761bfdec85915f4bbf7e750663f3442 (patch) | |
tree | e118ecb044d1b8a8427892b73ea00e052a504730 /arch/xtensa/kernel | |
parent | f0a1bf0859ffa059f9009d6a17e8d46241fb2161 (diff) |
xtensa: switch to generic sys_execve()
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r-- | arch/xtensa/kernel/process.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/xtensa/kernel/process.c b/arch/xtensa/kernel/process.c index be52fe437c1b..09ae7bfab9a7 100644 --- a/arch/xtensa/kernel/process.c +++ b/arch/xtensa/kernel/process.c | |||
@@ -373,28 +373,3 @@ long xtensa_clone(unsigned long clone_flags, unsigned long newsp, | |||
373 | { | 373 | { |
374 | return do_fork(clone_flags, newsp, regs, 0, parent_tid, child_tid); | 374 | return do_fork(clone_flags, newsp, regs, 0, parent_tid, child_tid); |
375 | } | 375 | } |
376 | |||
377 | /* | ||
378 | * xtensa_execve() executes a new program. | ||
379 | */ | ||
380 | |||
381 | asmlinkage | ||
382 | long xtensa_execve(const char __user *name, | ||
383 | const char __user *const __user *argv, | ||
384 | const char __user *const __user *envp, | ||
385 | long a3, long a4, long a5, | ||
386 | struct pt_regs *regs) | ||
387 | { | ||
388 | long error; | ||
389 | struct filename *filename; | ||
390 | |||
391 | filename = getname(name); | ||
392 | error = PTR_ERR(filename); | ||
393 | if (IS_ERR(filename)) | ||
394 | goto out; | ||
395 | error = do_execve(filename->name, argv, envp, regs); | ||
396 | putname(filename); | ||
397 | out: | ||
398 | return error; | ||
399 | } | ||
400 | |||