]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: rockchip - do not store mode globally
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 27 Sep 2022 07:54:43 +0000 (07:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:30 +0000 (13:32 +0100)
commitd2ce2922fd395219dc936431c0a9c221dc52cc2e
tree55d5a021bf32671ea202a76e344b53c6ef8ddd2e
parent2aecc5029fcc9450beae139d35a59d1a2591df81
crypto: rockchip - do not store mode globally

[ Upstream commit 87e356c4966444866186f68f05832fdcc0f351a3 ]

Storing the mode globally does not work if 2 requests are handled in the
same time.
We should store it in a request context.

Fixes: ce0183cb6464b ("crypto: rockchip - switch to skcipher API")
Reviewed-by: John Keeping <john@metanate.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/rockchip/rk3288_crypto.h
drivers/crypto/rockchip/rk3288_crypto_skcipher.c