]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: tegra - Transfer HASH init function to crypto engine
authorAkhil R <akhilrajeev@nvidia.com>
Mon, 24 Feb 2025 09:16:05 +0000 (14:46 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 08:22:24 +0000 (16:22 +0800)
commit97ee15ea101629d2ffe21d3c5dc03b8d8be43603
tree841c2fa22e176d98e5e08519c7bb1469d9d6f51e
parentdcf8b7e49b86738296c77fb58c123dd2d74a22a7
crypto: tegra - Transfer HASH init function to crypto engine

Ahash init() function was called asynchronous to the crypto engine queue.
This could corrupt the request context if there is any ongoing operation
for the same request. Queue the init function as well to the crypto
engine queue so that this scenario can be avoided.

Fixes: 0880bb3b00c8 ("crypto: tegra - Add Tegra Security Engine driver")
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/tegra/tegra-se-aes.c
drivers/crypto/tegra/tegra-se-hash.c
drivers/crypto/tegra/tegra-se.h