summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccree/cc_buffer_mgr.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2022-04-06 11:11:38 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-04-15 16:34:25 +0800
commit476c9ab75976c3aea1f7f05e1ebbd1219a0f11bb (patch)
tree7d58004ed88424db214da90a2305cc1bebb2bd04 /drivers/crypto/ccree/cc_buffer_mgr.c
parentc79c09ad31e2c0a5ba0166b284f433b95d9c4c18 (diff)
crypto: ccree - rearrange init calls to avoid race
Rearrange init calls to avoid the rare race condition of the cipher algs being registered and used while we still init the hash code which uses the HW without proper lock. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Reported-by: Dung Nguyen <dung.nguyen.zy@renesas.com> Tested-by: Jing Dan <jing.dan.nx@renesas.com> Tested-by: Dung Nguyen <dung.nguyen.zy@renesas.com> Fixes: 63893811b0fc("crypto: ccree - add ahash support") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree/cc_buffer_mgr.c')
0 files changed, 0 insertions, 0 deletions