Loading
crypto: hisilicon/sec2 - save capability registers in probe process
mainline inclusion from mainline-v6.8-rc1 commit f1115b0096c3163592e04e74f5a7548c25bda957 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I925L9 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f1115b0096c3163592e04e74f5a7548c25bda957 ---------------------------------------------------------------------- Pre-store the valid value of the sec alg support related capability register in sec_qm_init(), which will be called by probe process. It can reduce the number of capability register queries and avoid obtaining incorrect values in abnormal scenarios, such as reset failed and the memory space disabled. Fixes: 921715b6 ("crypto: hisilicon/sec - get algorithm bitmap from registers") Signed-off-by:Zhiqi Song <songzhiqi1@huawei.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
JangShui Yang <yangjiangshui@h-partners.com>