|
@@ -59,11 +59,8 @@ int fname_encrypt(struct inode *inode, const struct qstr *iname,
|
|
|
|
|
|
/* Set up the encryption request */
|
|
|
req = skcipher_request_alloc(tfm, GFP_NOFS);
|
|
|
- if (!req) {
|
|
|
- printk_ratelimited(KERN_ERR
|
|
|
- "%s: skcipher_request_alloc() failed\n", __func__);
|
|
|
+ if (!req)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
skcipher_request_set_callback(req,
|
|
|
CRYPTO_TFM_REQ_MAY_BACKLOG | CRYPTO_TFM_REQ_MAY_SLEEP,
|
|
|
crypto_req_done, &wait);
|
|
@@ -108,11 +105,8 @@ static int fname_decrypt(struct inode *inode,
|
|
|
|
|
|
/* Allocate request */
|
|
|
req = skcipher_request_alloc(tfm, GFP_NOFS);
|
|
|
- if (!req) {
|
|
|
- printk_ratelimited(KERN_ERR
|
|
|
- "%s: crypto_request_alloc() failed\n", __func__);
|
|
|
+ if (!req)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
skcipher_request_set_callback(req,
|
|
|
CRYPTO_TFM_REQ_MAY_BACKLOG | CRYPTO_TFM_REQ_MAY_SLEEP,
|
|
|
crypto_req_done, &wait);
|