diff options
-rw-r--r-- | crypto/pcrypt.c | 6 |
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); |