diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-04-11 10:14:18 +0300 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-04-12 04:33:09 +0300 |
| commit | b2e689baf220408aff8ee5dfb4edb0817e1632bb (patch) | |
| tree | b9f08ec8067090ecbfc3e46bd9d28be1a37f42ab /include/crypto/internal | |
| parent | 9ae0c92fec69374c6db8dddb0df00d86b9afa5da (diff) | |
| download | linux-b2e689baf220408aff8ee5dfb4edb0817e1632bb.tar.xz | |
crypto: ahash - Disable request chaining
Disable hash request chaining in case a driver that copies an
ahash_request object by hand accidentally triggers chaining.
Reported-by: Manorit Chawdhry <m-chawdhry@ti.com>
Fixes: f2ffe5a9183d ("crypto: hash - Add request chaining API")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Manorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/internal')
| -rw-r--r-- | include/crypto/internal/hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index 485e22cf517e..052ac7924af3 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h @@ -249,7 +249,7 @@ static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) static inline bool ahash_request_chained(struct ahash_request *req) { - return crypto_request_chained(&req->base); + return false; } static inline bool ahash_request_isvirt(struct ahash_request *req) |
