diff options
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 0cfefddd8375..c238ee4aa038 100644 --- a/arch/s390/crypto/prng.c +++ b/arch/s390/crypto/prng.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/fs.h> | 6 | #include <linux/fs.h> |
7 | #include <linux/init.h> | 7 | #include <linux/init.h> |
8 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
9 | #include <linux/smp_lock.h> | ||
9 | #include <linux/miscdevice.h> | 10 | #include <linux/miscdevice.h> |
10 | #include <linux/module.h> | 11 | #include <linux/module.h> |
11 | #include <linux/moduleparam.h> | 12 | #include <linux/moduleparam.h> |
@@ -48,6 +49,7 @@ static unsigned char parm_block[32] = { | |||
48 | 49 | ||
49 | static int prng_open(struct inode *inode, struct file *file) | 50 | static int prng_open(struct inode *inode, struct file *file) |
50 | { | 51 | { |
52 | cycle_kernel_lock(); | ||
51 | return nonseekable_open(inode, file); | 53 | return nonseekable_open(inode, file); |
52 | } | 54 | } |
53 | 55 | ||