projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b05c9e6
)
crypto-prng: BKL pushdown
author
Arnd Bergmann
<arnd@arndb.de>
Tue, 20 May 2008 17:15:45 +0000
(19:15 +0200)
committer
Jonathan Corbet
<corbet@lwn.net>
Fri, 20 Jun 2008 20:05:55 +0000
(14:05 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/s390/crypto/prng.c
patch
|
blob
|
history
diff --git
a/arch/s390/crypto/prng.c
b/arch/s390/crypto/prng.c
index 0cfefddd83755366fee0dae7634ccca6342b21dd..c238ee4aa038d79757012a4ff01bb4b2397546f4 100644
(file)
--- 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);
}