Skip to content

Commit

Permalink
frv: Remove the BKL from sys_execve
Browse files Browse the repository at this point in the history
sys_execve for frv seems to be a copy-and-paste of sys_execve that no
longer requires the bkl. Just remove it.

Signed-off-by: John Kacur <[email protected]>
Reviewed-by: Frederic Weisbecker <[email protected]>
Acked-by: David Howells <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
John Kacur authored and KAGA-KOKO committed Oct 14, 2009
1 parent 25708a5 commit b69975a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/frv/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,12 @@ asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __
int error;
char * filename;

lock_kernel();
filename = getname(name);
error = PTR_ERR(filename);
if (IS_ERR(filename))
goto out;
return error;
error = do_execve(filename, argv, envp, __frame);
putname(filename);
out:
unlock_kernel();
return error;
}

Expand Down

0 comments on commit b69975a

Please sign in to comment.