diff mbox series

[2/3] crypto: shash - Mark shash algorithms as REQ_CHAIN

Message ID c468e80c2e06884e8b7e25b212f367a0a23edd5d.1746176535.git.herbert@gondor.apana.org.au
State Superseded
Headers show
Series [1/3] crypto: shash - Cap state size to HASH_MAX_DESCSIZE | expand

Commit Message

Herbert Xu May 2, 2025, 9:03 a.m. UTC
Mark shash algorithms with the REQ_CHAIN bit as they can handle
virtual addresses as is.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
 crypto/shash.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/crypto/shash.c b/crypto/shash.c
index 4f446463340e..025f9f3a9d49 100644
--- a/crypto/shash.c
+++ b/crypto/shash.c
@@ -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_CHAIN;
 
 	/*
 	 * Handle missing optional functions.  For each one we can either