mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
crypto: pcrypt - call the complete function on error
This fixes three forgotten calls to the complete function in the error case. Signed-off-by: Steffen Klassert <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
1 parent
e054f16471
commit
5a1436beec
1 file changed
+3
-3
+3
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user