diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-07-29 21:53:45 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:41:50 -0400 |
commit | 8f21cf0d2bae04ece761595036c9da8328b279aa (patch) | |
tree | 4025d020895dcbfc2aef330fed01860bbf0ba64d /crypto/digest.c | |
parent | 6d7d684d635ac5a345f075015f2c84169c111c6a (diff) |
[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/digest.c')
-rw-r--r-- | crypto/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/digest.c b/crypto/digest.c index 19e75563776b..96244a528844 100644 --- a/crypto/digest.c +++ b/crypto/digest.c | |||
@@ -55,7 +55,7 @@ static void update(struct crypto_tfm *tfm, | |||
55 | tfm->__crt_alg->cra_digest.dia_update(tfm, p, | 55 | tfm->__crt_alg->cra_digest.dia_update(tfm, p, |
56 | bytes_from_page); | 56 | bytes_from_page); |
57 | crypto_kunmap(src, 0); | 57 | crypto_kunmap(src, 0); |
58 | crypto_yield(tfm); | 58 | crypto_yield(tfm->crt_flags); |
59 | offset = 0; | 59 | offset = 0; |
60 | pg++; | 60 | pg++; |
61 | l -= bytes_from_page; | 61 | l -= bytes_from_page; |