projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
350ef88
)
crypto: omap - return -ENOMEM on allocation failure.
author
Allen
<allen.lkml@gmail.com>
Wed, 13 Sep 2017 07:32:11 +0000
(13:02 +0530)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 7 Oct 2017 04:10:33 +0000
(12:10 +0800)
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes-gcm.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/omap-aes-gcm.c
b/drivers/crypto/omap-aes-gcm.c
index
9b8f1c7
..
9ec598a
100644
(file)
--- 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);