diff options
author | Cristian Stoica <cristian.stoica@freescale.com> | 2014-11-05 11:21:24 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-11-06 23:15:05 +0800 |
commit | 49783d0f54219e1c68eac738fdd3244b7a6cbda7 (patch) | |
tree | 4b64bc6e585dce05e5f9ad15284f6b60b0d4d7dd /crypto/drbg.c | |
parent | 7222d1a3410388c8e21a5028ba2beb498938b57f (diff) | |
download | op-kernel-dev-49783d0f54219e1c68eac738fdd3244b7a6cbda7.zip op-kernel-dev-49783d0f54219e1c68eac738fdd3244b7a6cbda7.tar.gz |
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>
Diffstat (limited to 'crypto/drbg.c')
0 files changed, 0 insertions, 0 deletions