Commit 5a1436beec5744029f3ac90b6fe71a698dcd6155

Authored by Steffen Klassert
Committed by Herbert Xu
1 parent e054f16471

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>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -114,7 +114,7 @@
114 114  
115 115 padata->info = crypto_aead_encrypt(req);
116 116  
117   - if (padata->info)
  117 + if (padata->info == -EINPROGRESS)
118 118 return;
119 119  
120 120 padata_do_serial(padata);
... ... @@ -158,7 +158,7 @@
158 158  
159 159 padata->info = crypto_aead_decrypt(req);
160 160  
161   - if (padata->info)
  161 + if (padata->info == -EINPROGRESS)
162 162 return;
163 163  
164 164 padata_do_serial(padata);
... ... @@ -202,7 +202,7 @@
202 202  
203 203 padata->info = crypto_aead_givencrypt(req);
204 204  
205   - if (padata->info)
  205 + if (padata->info == -EINPROGRESS)
206 206 return;
207 207  
208 208 padata_do_serial(padata);