提交 5a1436be 编写于 作者: S Steffen Klassert 提交者: Herbert Xu

crypto: pcrypt - call the complete function on error

This fixes three forgotten calls to the complete function
in the error case.
Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 e054f164
......@@ -114,7 +114,7 @@ static void pcrypt_aead_enc(struct padata_priv *padata)
padata->info = crypto_aead_encrypt(req);
if (padata->info)
if (padata->info == -EINPROGRESS)
return;
padata_do_serial(padata);
......@@ -158,7 +158,7 @@ static void pcrypt_aead_dec(struct padata_priv *padata)
padata->info = crypto_aead_decrypt(req);
if (padata->info)
if (padata->info == -EINPROGRESS)
return;
padata_do_serial(padata);
......@@ -202,7 +202,7 @@ static void pcrypt_aead_givenc(struct padata_priv *padata)
padata->info = crypto_aead_givencrypt(req);
if (padata->info)
if (padata->info == -EINPROGRESS)
return;
padata_do_serial(padata);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册