提交 2fd23f2b 编写于 作者: A Allen 提交者: Herbert Xu

crypto: omap - return -ENOMEM on allocation failure.

Signed-off-by: NAllen Pais <allen.lkml@gmail.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 350ef88e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册