[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1505287939-14106-2-git-send-email-allen.lkml@gmail.com>
Date: Wed, 13 Sep 2017 13:02:11 +0530
From: Allen Pais <allen.lkml@...il.com>
To: linux-kernel@...r.kernel.org
Cc: nouveau@...ts.freedesktop.org, linux-crypto@...r.kernel.org,
dri-devel@...ts.freedesktop.org, MPT-FusionLinux.pdl@...adcom.com,
linux-scsi@...r.kernel.org, netdev@...r.kernel.org,
megaraidlinux.pdl@...adcom.com, target-devel@...r.kernel.org,
linux-fbdev@...r.kernel.org, linux-btrfs@...r.kernel.org,
Allen Pais <allen.lkml@...il.com>
Subject: [PATCH 02/10] drivers:crypto: return -ENOMEM on allocation failure.
Signed-off-by: Allen Pais <allen.lkml@...il.com>
---
drivers/crypto/omap-aes-gcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/omap-aes-gcm.c b/drivers/crypto/omap-aes-gcm.c
index 7d4f8a4..2542224 100644
--- a/drivers/crypto/omap-aes-gcm.c
+++ b/drivers/crypto/omap-aes-gcm.c
@@ -186,7 +186,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);
--
2.7.4
Powered by blists - more mailing lists