diff options
author | Allen <allen.lkml@gmail.com> | 2017-09-13 10:32:11 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-07 07:10:33 +0300 |
commit | 2fd23f2b9016dc5391f258a462ae0a334a3c9f86 (patch) | |
tree | 000f5c44555e9f7f0977934118c419aa9a86bfd4 /drivers/crypto/omap-aes-gcm.c | |
parent | 350ef88e7e922354f82a931897ad4a4ce6c686ff (diff) | |
download | linux-2fd23f2b9016dc5391f258a462ae0a334a3c9f86.tar.xz |
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/omap-aes-gcm.c')
-rw-r--r-- | drivers/crypto/omap-aes-gcm.c | 2 |
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); |