summaryrefslogtreecommitdiffstats
path: root/crypto/cipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-07-30 03:53:45 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-21 03:41:50 +0200
commit8f21cf0d2bae04ece761595036c9da8328b279aa (patch)
tree4025d020895dcbfc2aef330fed01860bbf0ba64d /crypto/cipher.c
parent[CRYPTO] api: Added crypto_alloc_base (diff)
downloadlinux-8f21cf0d2bae04ece761595036c9da8328b279aa.tar.xz
linux-8f21cf0d2bae04ece761595036c9da8328b279aa.zip
[CRYPTO] api: Feed flag directly to crypto_yield
The sleeping flag used to determine whether crypto_yield can actually yield is really a per-operation flag rather than a per-tfm flag. This patch changes crypto_yield to take a flag directly so that we can start using a per-operation flag instead the tfm flag. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cipher.c')
-rw-r--r--crypto/cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cipher.c b/crypto/cipher.c
index aebc4a2adc80..f573c59ed9dc 100644
--- a/crypto/cipher.c
+++ b/crypto/cipher.c
@@ -145,7 +145,7 @@ static int crypt(const struct cipher_desc *desc,
if (!nbytes)
break;
- crypto_yield(tfm);
+ crypto_yield(tfm->crt_flags);
}
if (buffer)