From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:57 +0000 (+0200) Subject: uml-random: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7eb500d1a0408c37d0c0360f066f8b7701835d68;p=linux-2.6-omap-h63xx.git uml-random: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/arch/um/drivers/random.c b/arch/um/drivers/random.c index 4949044773b..6eabb7022a2 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 +#include #include #include #include @@ -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;