projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b1a29c
)
crypto: shash - Mark shash algorithms as REQ_VIRT
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 4 May 2025 13:33:16 +0000
(21:33 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 5 May 2025 10:20:46 +0000
(18:20 +0800)
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>
crypto/shash.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/shash.c
b/crypto/shash.c
index 44a6df3132adb6bfbeb1d5ffb6fac5370c28c57f..dee391d47f51737b249b2ba8413a5f9ae2164971 100644
(file)
--- 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