From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:00 +0000 (+0200) Subject: hw-random: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~58 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a9c4e8f74ba26f10cf78fed7c5b863ea50988856;p=linux-2.6-omap-h63xx.git hw-random: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 662d60e44e9..e5d583c84e4 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -86,6 +87,7 @@ static int rng_dev_open(struct inode *inode, struct file *filp) return -EINVAL; if (filp->f_mode & FMODE_WRITE) return -EINVAL; + cycle_kernel_lock(); return 0; }