From: Arnd Bergmann Date: Tue, 20 May 2008 17:15:46 +0000 (+0200) Subject: crypto-zcrypt_api: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~70 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e73322ceefb2a777dc0ef369a2504bf5c42b8c52;p=linux-2.6-omap-h63xx.git crypto-zcrypt_api: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index 4d36e805a23..e41c2fa86d8 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -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; }