Commit 5e613613 authored by Paul Mundt's avatar Paul Mundt

sh: Drop the BKL from sys_execve() on SH-5.

Brings it in line with the SH implementation, the BKL is not
necessary here.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8ed3592e
...@@ -520,7 +520,6 @@ asmlinkage int sys_execve(char *ufilename, char **uargv, ...@@ -520,7 +520,6 @@ asmlinkage int sys_execve(char *ufilename, char **uargv,
int error; int error;
char *filename; char *filename;
lock_kernel();
filename = getname((char __user *)ufilename); filename = getname((char __user *)ufilename);
error = PTR_ERR(filename); error = PTR_ERR(filename);
if (IS_ERR(filename)) if (IS_ERR(filename))
...@@ -537,7 +536,6 @@ asmlinkage int sys_execve(char *ufilename, char **uargv, ...@@ -537,7 +536,6 @@ asmlinkage int sys_execve(char *ufilename, char **uargv,
} }
putname(filename); putname(filename);
out: out:
unlock_kernel();
return error; return error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment