Browse Source

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>
Allen 8 years ago
parent
commit
2fd23f2b90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/crypto/omap-aes-gcm.c

+ 1 - 1
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);