]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
crypto: pcrypt - call the complete function on error
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 4 Feb 2010 00:40:17 +0000 (11:40 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Feb 2010 00:40:17 +0000 (11:40 +1100)
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>
crypto/pcrypt.c

index b9527d05e17d07a9451d0c8a84ceb501624f1ac4..80201241b6982bcaefc4ddffb799e0fd7a32c7d7 100644 (file)
@@ -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);