aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2010-02-03 19:40:17 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2010-02-03 19:40:17 -0500
commit5a1436beec5744029f3ac90b6fe71a698dcd6155 (patch)
tree2b2cd0210f6180dab23f7825ab2d8cf3f0daf0df /crypto
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')
-rw-r--r--crypto/pcrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c
index b9527d05e17d..80201241b698 100644
--- a/crypto/pcrypt.c
+++ b/crypto/pcrypt.c
@@ -114,7 +114,7 @@ static void pcrypt_aead_enc(struct padata_priv *padata)
114 114
115 padata->info = crypto_aead_encrypt(req); 115 padata->info = crypto_aead_encrypt(req);
116 116
117 if (padata->info) 117 if (padata->info == -EINPROGRESS)
118 return; 118 return;
119 119
120 padata_do_serial(padata); 120 padata_do_serial(padata);
@@ -158,7 +158,7 @@ static void pcrypt_aead_dec(struct padata_priv *padata)
158 158
159 padata->info = crypto_aead_decrypt(req); 159 padata->info = crypto_aead_decrypt(req);
160 160
161 if (padata->info) 161 if (padata->info == -EINPROGRESS)
162 return; 162 return;
163 163
164 padata_do_serial(padata); 164 padata_do_serial(padata);
@@ -202,7 +202,7 @@ static void pcrypt_aead_givenc(struct padata_priv *padata)
202 202
203 padata->info = crypto_aead_givencrypt(req); 203 padata->info = crypto_aead_givencrypt(req);
204 204
205 if (padata->info) 205 if (padata->info == -EINPROGRESS)
206 return; 206 return;
207 207
208 padata_do_serial(padata); 208 padata_do_serial(padata);