diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 19:16:57 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-05-22 08:13:15 -0600 |
commit | 6a92b1d0b54b218b6f1dae1e3fb510a2e5375cde (patch) | |
tree | 52bdd27ded235df99573edf797a4caee83f254af /arch/um | |
parent | 2a9012929cc016b686a8fa07c82b2f9d26b61748 (diff) |
uml-random: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/random.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/um/drivers/random.c b/arch/um/drivers/random.c index 4949044773ba..6eabb7022a2d 100644 --- a/arch/um/drivers/random.c +++ b/arch/um/drivers/random.c @@ -7,6 +7,7 @@ * of the GNU General Public License, incorporated herein by reference. */ #include <linux/sched.h> +#include <linux/smp_lock.h> #include <linux/module.h> #include <linux/fs.h> #include <linux/interrupt.h> @@ -33,6 +34,8 @@ static DECLARE_WAIT_QUEUE_HEAD(host_read_wait); static int rng_dev_open (struct inode *inode, struct file *filp) { + cycle_kernel_lock(); + /* enforce read-only access to this chrdev */ if ((filp->f_mode & FMODE_READ) == 0) return -EINVAL; |