diff options
author | Allen <allen.lkml@gmail.com> | 2017-09-13 09:32:11 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-07 06:10:33 +0200 |
commit | 2fd23f2b9016dc5391f258a462ae0a334a3c9f86 (patch) | |
tree | 000f5c44555e9f7f0977934118c419aa9a86bfd4 /drivers/crypto | |
parent | padata: ensure padata_do_serial() runs on the correct CPU (diff) | |
download | linux-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.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); |