2010-02-01 10:04:59

by Steffen Klassert

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
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



2010-02-04 00:40:36

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: pcrypt - call the complete function on error

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 <[email protected]>

Applied. Thanks!
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt