android_kernel_xiaomi_sm8450/drivers/crypto/allwinner
Christophe JAILLET 87a1fa0ad7 crypto: sun8i-ss - Fix a test in sun8i_ss_setup_ivs()
[ Upstream commit 8fd91151ebcb21b3f2f2bf158ac6092192550b2b ]

SS_ENCRYPTION is (0 << 7 = 0), so the test can never be true.
Use a direct comparison to SS_ENCRYPTION instead.

The same king of test is already done the same way in sun8i_ss_run_task().

Fixes: 359e893e8af4 ("crypto: sun8i-ss - rework handling of IV")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 11:48:13 +02:00
..
sun4i-ss crypto: sun4i-ss - initialize need_fallback 2021-03-04 11:38:32 +01:00
sun8i-ce crypto: sun8i-ce - call finalize with bh disabled 2022-04-08 14:40:01 +02:00
sun8i-ss crypto: sun8i-ss - Fix a test in sun8i_ss_setup_ivs() 2023-05-17 11:48:13 +02:00
Kconfig crypto: allwinner - add missing CRYPTO_ prefix 2021-05-14 09:50:16 +02:00
Makefile crypto: allwinner - Add sun8i-ss cryptographic offloader 2019-11-01 13:38:31 +08:00