mn10300: switch to generic sys_execve()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2012-09-19 13:08:13 -04:00
parent 255461c53a
commit 8f1597e959
3 changed files with 2 additions and 16 deletions

View File

@@ -283,22 +283,6 @@ asmlinkage long sys_vfork(void)
current_frame(), 0, NULL, NULL);
}
asmlinkage long sys_execve(const char __user *name,
const char __user *const __user *argv,
const char __user *const __user *envp)
{
char *filename;
int error;
filename = getname(name);
error = PTR_ERR(filename);
if (IS_ERR(filename))
return error;
error = do_execve(filename, argv, envp, current_frame());
putname(filename);
return error;
}
unsigned long get_wchan(struct task_struct *p)
{
return p->thread.wchan;