summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorAllen <allen.lkml@gmail.com>2017-09-13 09:32:11 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-07 06:10:33 +0200
commit2fd23f2b9016dc5391f258a462ae0a334a3c9f86 (patch)
tree000f5c44555e9f7f0977934118c419aa9a86bfd4 /drivers/crypto
parentpadata: ensure padata_do_serial() runs on the correct CPU (diff)
downloadlinux-2fd23f2b9016dc5391f258a462ae0a334a3c9f86.tar.xz
linux-2fd23f2b9016dc5391f258a462ae0a334a3c9f86.zip
crypto: omap - return -ENOMEM on allocation failure.
Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/omap-aes-gcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/omap-aes-gcm.c b/drivers/crypto/omap-aes-gcm.c
index 9b8f1c752168..9ec598a96861 100644
--- a/drivers/crypto/omap-aes-gcm.c
+++ b/drivers/crypto/omap-aes-gcm.c
@@ -187,7 +187,7 @@ static int do_encrypt_iv(struct aead_request *req, u32 *tag, u32 *iv)
sk_req = skcipher_request_alloc(ctx->ctr, GFP_KERNEL);
if (!sk_req) {
pr_err("skcipher: Failed to allocate request\n");
- return -1;
+ return -ENOMEM;
}
init_completion(&result.completion);