diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 19:15:46 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 14:05:55 -0600 |
commit | e73322ceefb2a777dc0ef369a2504bf5c42b8c52 (patch) | |
tree | 622a416f2d51090e0de8b49c45e47b3355b35a15 /drivers/s390/crypto | |
parent | 135fe10f9fb9fba981f60c5526e37900f52c9705 (diff) | |
download | kernel_samsung_tuna-e73322ceefb2a777dc0ef369a2504bf5c42b8c52.zip kernel_samsung_tuna-e73322ceefb2a777dc0ef369a2504bf5c42b8c52.tar.gz kernel_samsung_tuna-e73322ceefb2a777dc0ef369a2504bf5c42b8c52.tar.bz2 |
crypto-zcrypt_api: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/s390/crypto')
-rw-r--r-- | drivers/s390/crypto/zcrypt_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index 4d36e80..e41c2fa 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c @@ -34,6 +34,7 @@ #include <linux/fs.h> #include <linux/proc_fs.h> #include <linux/compat.h> +#include <linux/smp_lock.h> #include <asm/atomic.h> #include <asm/uaccess.h> #include <linux/hw_random.h> @@ -300,7 +301,9 @@ static ssize_t zcrypt_write(struct file *filp, const char __user *buf, */ static int zcrypt_open(struct inode *inode, struct file *filp) { + lock_kernel(); atomic_inc(&zcrypt_open_count); + unlock_kernel(); return 0; } |