aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/exec_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/exec_kern.c')
-rw-r--r--arch/um/kernel/exec_kern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/exec_kern.c b/arch/um/kernel/exec_kern.c
index 1ca84319317d..f9b346e05b00 100644
--- a/arch/um/kernel/exec_kern.c
+++ b/arch/um/kernel/exec_kern.c
@@ -58,14 +58,14 @@ long um_execve(char *file, char __user *__user *argv, char __user *__user *env)
58 return(err); 58 return(err);
59} 59}
60 60
61long sys_execve(char *file, char __user *__user *argv, 61long sys_execve(char __user *file, char __user *__user *argv,
62 char __user *__user *env) 62 char __user *__user *env)
63{ 63{
64 long error; 64 long error;
65 char *filename; 65 char *filename;
66 66
67 lock_kernel(); 67 lock_kernel();
68 filename = getname((char __user *) file); 68 filename = getname(file);
69 error = PTR_ERR(filename); 69 error = PTR_ERR(filename);
70 if (IS_ERR(filename)) goto out; 70 if (IS_ERR(filename)) goto out;
71 error = execve1(filename, argv, env); 71 error = execve1(filename, argv, env);