commit | 49783d0f54219e1c68eac738fdd3244b7a6cbda7 | [log] [tgz] |
---|---|---|
author | Cristian Stoica <cristian.stoica@freescale.com> | Wed Nov 05 11:21:24 2014 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Nov 06 23:15:05 2014 +0800 |
tree | 4b64bc6e585dce05e5f9ad15284f6b60b0d4d7dd | |
parent | 7222d1a3410388c8e21a5028ba2beb498938b57f [diff] |
crypto: caam - fix error reporting The error code returned by hardware is four bits wide with an expected zero MSB. A hardware error condition where the error code can get between 0x8 and 0xf will trigger an out of bound array access on the error message table. This patch fixes the invalid array access following such an error and reports the condition. Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>