crypto-prng: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2008-05-20 19:15:45 +02:00 committed by Jonathan Corbet
parent b05c9e6cd9
commit 135fe10f9f
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#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>
@ -48,6 +49,7 @@ 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);
} }