crypto: ccree - add function to handle cryptocell tee fips error
authorOfir Drang <ofir.drang@arm.com>
Thu, 18 Apr 2019 13:39:09 +0000 (16:39 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Apr 2019 07:38:16 +0000 (15:38 +0800)
commit897ab2316910a66bb048f1c9cefa25e6a592dcd7
tree7a4c23403082d5cc49fd90e372d687a434f7804c
parent3499efbeed39d114873267683b9e776bcb34b058
crypto: ccree - add function to handle cryptocell tee fips error

Adds function that checks if cryptocell tee fips error occurred
and in such case triggers system error through kernel panic.
Change fips function to use this new routine.

Signed-off-by: Ofir Drang <ofir.drang@arm.com>
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_fips.c
drivers/crypto/ccree/cc_fips.h