Commit 2588465b authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'bkl-arch-for-linus' of...

Merge branch 'bkl-arch-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'bkl-arch-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  mn10300: Remove the BKL from sys_execve
  m68knommu: Remove the BKL from sys_execve
  m68k: Remove the BKL from sys_execve
  h83000: Remove BKL from sys_execve
  frv: Remove the BKL from sys_execve
  blackfin: Remove the BKL from sys_execve
  um: Remove BKL from mmapper
  um: Remove BKL from random
  s390: Remove BKL from prng
parents 18821b04 8c0daee2
...@@ -215,22 +215,18 @@ copy_thread(unsigned long clone_flags, ...@@ -215,22 +215,18 @@ copy_thread(unsigned long clone_flags,
/* /*
* sys_execve() executes a new program. * sys_execve() executes a new program.
*/ */
asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __user * __user *envp) asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __user * __user *envp)
{ {
int error; int error;
char *filename; char *filename;
struct pt_regs *regs = (struct pt_regs *)((&name) + 6); struct pt_regs *regs = (struct pt_regs *)((&name) + 6);
lock_kernel();
filename = getname(name); filename = getname(name);
error = PTR_ERR(filename); error = PTR_ERR(filename);
if (IS_ERR(filename)) if (IS_ERR(filename))
goto out; return error;
error = do_execve(filename, argv, envp, regs); error = do_execve(filename, argv, envp, regs);
putname(filename); putname(filename);
out:
unlock_kernel();
return error; return error;
} }
......
...@@ -255,15 +255,12 @@ asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __ ...@@ -255,15 +255,12 @@ asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __
int error; int error;
char * filename; char * filename;
lock_kernel();
filename = getname(name); filename = getname(name);
error = PTR_ERR(filename); error = PTR_ERR(filename);
if (IS_ERR(filename)) if (IS_ERR(filename))
goto out; return error;
error = do_execve(filename, argv, envp, __frame); error = do_execve(filename, argv, envp, __frame);
putname(filename); putname(filename);
out:
unlock_kernel();
return error; return error;
} }
......
...@@ -218,15 +218,12 @@ asmlinkage int sys_execve(char *name, char **argv, char **envp,int dummy,...) ...@@ -218,15 +218,12 @@ asmlinkage int sys_execve(char *name, char **argv, char **envp,int dummy,...)
char * filename; char * filename;
struct pt_regs *regs = (struct pt_regs *) ((unsigned char *)&dummy-4); struct pt_regs *regs = (struct pt_regs *) ((unsigned char *)&dummy-4);
lock_kernel();
filename = getname(name); filename = getname(name);
error = PTR_ERR(filename); error = PTR_ERR(filename);
if (IS_ERR(filename)) if (IS_ERR(filename))
goto out; return error;
error = do_execve(filename, argv, envp, regs); error = do_execve(filename, argv, envp, regs);
putname(filename); putname(filename);
out:
unlock_kernel();
return error; return error;
} }
......
...@@ -352,15 +352,12 @@ asmlinkage int sys_execve(char *name, char **argv, char **envp) ...@@ -352,15 +352,12 @@ asmlinkage int sys_execve(char *name, char **argv, char **envp)
char * filename; char * filename;
struct pt_regs *regs = (struct pt_regs *) &name; struct pt_regs *regs = (struct pt_regs *) &name;
lock_kernel();
filename = getname(name); filename = getname(name);
error = PTR_ERR(filename); error = PTR_ERR(filename);
if (IS_ERR(filename)) if (IS_ERR(filename))
goto out; return error;
error = do_execve(filename, argv, envp, regs); error = do_execve(filename, argv, envp, regs);
putname(filename); putname(filename);
out:
unlock_kernel();
return error; return error;
} }
......
...@@ -275,16 +275,12 @@ asmlinkage long sys_execve(char __user *name, ...@@ -275,16 +275,12 @@ asmlinkage long sys_execve(char __user *name,
char *filename; char *filename;
int error; int error;
lock_kernel();
filename = getname(name); filename = getname(name);
error = PTR_ERR(filename); error = PTR_ERR(filename);
if (!IS_ERR(filename)) { if (IS_ERR(filename))
error = do_execve(filename, argv, envp, __frame); return error;
putname(filename); error = do_execve(filename, argv, envp, __frame);
} putname(filename);
unlock_kernel();
return error; return error;
} }
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/smp_lock.h>
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
...@@ -49,7 +48,6 @@ static unsigned char parm_block[32] = { ...@@ -49,7 +48,6 @@ static unsigned char parm_block[32] = {
static int prng_open(struct inode *inode, struct file *file) static int prng_open(struct inode *inode, struct file *file)
{ {
cycle_kernel_lock();
return nonseekable_open(inode, file); return nonseekable_open(inode, file);
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include "mem_user.h" #include "mem_user.h"
...@@ -78,7 +78,6 @@ out: ...@@ -78,7 +78,6 @@ out:
static int mmapper_open(struct inode *inode, struct file *file) static int mmapper_open(struct inode *inode, struct file *file)
{ {
cycle_kernel_lock();
return 0; return 0;
} }
...@@ -115,18 +114,16 @@ static int __init mmapper_init(void) ...@@ -115,18 +114,16 @@ static int __init mmapper_init(void)
v_buf = (char *) find_iomem("mmapper", &mmapper_size); v_buf = (char *) find_iomem("mmapper", &mmapper_size);
if (mmapper_size == 0) { if (mmapper_size == 0) {
printk(KERN_ERR "mmapper_init - find_iomem failed\n"); printk(KERN_ERR "mmapper_init - find_iomem failed\n");
goto out; return -ENODEV;
} }
p_buf = __pa(v_buf);
err = misc_register(&mmapper_dev); err = misc_register(&mmapper_dev);
if (err) { if (err) {
printk(KERN_ERR "mmapper - misc_register failed, err = %d\n", printk(KERN_ERR "mmapper - misc_register failed, err = %d\n",
err); err);
goto out; return err;;
} }
p_buf = __pa(v_buf);
out:
return 0; return 0;
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*/ */
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
...@@ -34,8 +33,6 @@ static DECLARE_WAIT_QUEUE_HEAD(host_read_wait); ...@@ -34,8 +33,6 @@ static DECLARE_WAIT_QUEUE_HEAD(host_read_wait);
static int rng_dev_open (struct inode *inode, struct file *filp) static int rng_dev_open (struct inode *inode, struct file *filp)
{ {
cycle_kernel_lock();
/* enforce read-only access to this chrdev */ /* enforce read-only access to this chrdev */
if ((filp->f_mode & FMODE_READ) == 0) if ((filp->f_mode & FMODE_READ) == 0)
return -EINVAL; return -EINVAL;
......
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