aboutsummaryrefslogtreecommitdiff
path: root/crypto/pcrypt.c
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2010-02-04 11:40:17 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2010-02-04 11:40:17 +1100
commit5a1436beec5744029f3ac90b6fe71a698dcd6155 (patch)
tree2b2cd0210f6180dab23f7825ab2d8cf3f0daf0df /crypto/pcrypt.c
parente054f1647162d7098a9ff619405a72bd7c417213 (diff)
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 <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/pcrypt.c')
-rw-r--r--crypto/pcrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c
index b9527d05e17..80201241b69 100644
--- a/crypto/pcrypt.c
+++ b/crypto/pcrypt.c
@@ -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);