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: v6.16-rc1~206^2~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e365d5ca38941708fbe8356719e3436cef7627;p=thirdparty%2Fkernel%2Flinux.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 44a6df3132adb..dee391d47f517 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