diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-15 02:27:16 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-15 11:15:04 -0400 |
commit | 5fd0b580a9fda554eae27fff4953e6622bd792d7 (patch) | |
tree | 8dddf797bfb5c5cd8ad9a657fca39cd2fbbb5b28 /arch/avr32/kernel/process.c | |
parent | 5adc807f707535a5ce97b5d69472ee74d6d099ac (diff) |
avr32: switch to generic sys_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/avr32/kernel/process.c')
-rw-r--r-- | arch/avr32/kernel/process.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c index 07380c3a4f7..09b894d96d6 100644 --- a/arch/avr32/kernel/process.c +++ b/arch/avr32/kernel/process.c | |||
@@ -349,27 +349,6 @@ asmlinkage int sys_vfork(struct pt_regs *regs) | |||
349 | 0, NULL, NULL); | 349 | 0, NULL, NULL); |
350 | } | 350 | } |
351 | 351 | ||
352 | asmlinkage int sys_execve(const char __user *ufilename, | ||
353 | const char __user *const __user *uargv, | ||
354 | const char __user *const __user *uenvp, | ||
355 | struct pt_regs *regs) | ||
356 | { | ||
357 | int error; | ||
358 | struct filename *filename; | ||
359 | |||
360 | filename = getname(ufilename); | ||
361 | error = PTR_ERR(filename); | ||
362 | if (IS_ERR(filename)) | ||
363 | goto out; | ||
364 | |||
365 | error = do_execve(filename->name, uargv, uenvp, regs); | ||
366 | putname(filename); | ||
367 | |||
368 | out: | ||
369 | return error; | ||
370 | } | ||
371 | |||
372 | |||
373 | /* | 352 | /* |
374 | * This function is supposed to answer the question "who called | 353 | * This function is supposed to answer the question "who called |
375 | * schedule()?" | 354 | * schedule()?" |