* [PATCH] crypto: pcrypt - call the complete function on error
@ 2010-02-01 9:39 Steffen Klassert
2010-02-04 0:40 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Steffen Klassert @ 2010-02-01 9:39 UTC (permalink / raw)
To: Herbert Xu; +Cc: linux-crypto
This fixes three forgotten calls to the complete function
in the error case.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
---
crypto/pcrypt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c
index b9527d0..8020124 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);
--
1.5.4.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: pcrypt - call the complete function on error
2010-02-01 9:39 [PATCH] crypto: pcrypt - call the complete function on error Steffen Klassert
@ 2010-02-04 0:40 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2010-02-04 0:40 UTC (permalink / raw)
To: Steffen Klassert; +Cc: linux-crypto
On Mon, Feb 01, 2010 at 10:39:37AM +0100, Steffen Klassert wrote:
> This fixes three forgotten calls to the complete function
> in the error case.
>
> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Applied. Thanks!
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-04 0:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01 9:39 [PATCH] crypto: pcrypt - call the complete function on error Steffen Klassert
2010-02-04 0:40 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.