Skip to contentSkip to conversation

crypto: pcrypt - call the complete function on error

PATCH Applied Steffen Klassert 2 participants 2 messages Feb 1, 2010 – Feb 4, 2010

Subsystems (2)
lore
Share & tools
lore

Steffen Klassert

author maintainer
#0 lore raw

PATCH 1/1 crypto: pcrypt - call the complete function on error

This fixes three forgotten calls to the complete function in the error case.

---
 crypto/pcrypt.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
crypto/pcrypt.c +3 -3
index b9527d0..8020124 100644
@@ -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);
Signature · 1 line
1.5.4.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Steffen Klassert

This fixes three forgotten calls to the complete function in the error case.

Applied. Thanks!

Signature · 4 lines
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