mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
[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>
This commit is contained in:
parent
6d7d684d63
commit
8f21cf0d2b
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue