crypto: sun8i-ss - Fix a test in sun8i_ss_setup_ivs()
stable inclusion from stable-v5.10.180 commit 87a1fa0ad74e844c1801515df94ff0af0a0121b8 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=87a1fa0ad74e844c1801515df94ff0af0a0121b8 -------------------------------- [ Upstream commit 8fd91151 ] 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: 359e893e ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment