From: Herbert Xu Date: Sun, 4 May 2025 13:33:16 +0000 (+0800) Subject: crypto: shash - Mark shash algorithms as REQ_VIRT X-Git-Tag: block-6.16-20250606~34^2~71 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f4e365d5ca38941708fbe8356719e3436cef7627;p=linux-block.git 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 --- diff --git a/crypto/shash.c b/crypto/shash.c index 44a6df3132ad..dee391d47f51 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_VIRT; /* * Handle missing optional functions. For each one we can either