diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 17:15:45 (GMT) |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 20:05:55 (GMT) |
commit | 135fe10f9fb9fba981f60c5526e37900f52c9705 (patch) | |
tree | b714165532d5f77ee0bedb3b26d4b85d6bf253be /arch | |
parent | b05c9e6cd939b6f79be17e9b6a23ca15a219dec2 (diff) | |
download | linux-135fe10f9fb9fba981f60c5526e37900f52c9705.tar.xz |
crypto-prng: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/crypto/prng.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/crypto/prng.c b/arch/s390/crypto/prng.c index 0cfefdd..c238ee4 100644 --- a/arch/s390/crypto/prng.c +++ b/arch/s390/crypto/prng.c @@ -6,6 +6,7 @@ #include <linux/fs.h> #include <linux/init.h> #include <linux/kernel.h> +#include <linux/smp_lock.h> #include <linux/miscdevice.h> #include <linux/module.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) { + cycle_kernel_lock(); return nonseekable_open(inode, file); } |