mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
crypto: shash - Mark shash algorithms as REQ_VIRT
Mark shash algorithms with the REQ_VIRT bit as they can handle virtual addresses as is. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -450,6 +450,7 @@ static int shash_prepare_alg(struct shash_alg *alg)
|
||||
|
||||
base->cra_type = &crypto_shash_type;
|
||||
base->cra_flags |= CRYPTO_ALG_TYPE_SHASH;
|
||||
base->cra_flags |= CRYPTO_ALG_REQ_VIRT;
|
||||
|
||||
/*
|
||||
* Handle missing optional functions. For each one we can either
|
||||
|
||||
Reference in New Issue
Block a user