OSDN Git Service

crypto: rockchip - do not store mode globally
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 27 Sep 2022 07:54:43 +0000 (07:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Oct 2022 04:36:33 +0000 (12:36 +0800)
commit87e356c4966444866186f68f05832fdcc0f351a3
tree95015403f8f141ed0c2fdd0d5a4514d4985c9de7
parent6d11c9387865723fd779be00ae37a4588e60133d
crypto: rockchip - do not store mode globally

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>
drivers/crypto/rockchip/rk3288_crypto.h
drivers/crypto/rockchip/rk3288_crypto_skcipher.c