Skip to content
Commit 476c9ab7 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Herbert Xu
Browse files

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: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Reported-by: default avatarDung Nguyen <dung.nguyen.zy@renesas.com>
Tested-by: default avatarJing Dan <jing.dan.nx@renesas.com>
Tested-by: default avatarDung Nguyen <dung.nguyen.zy@renesas.com>
Fixes: 63893811("crypto: ccree - add ahash support")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c79c09ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment