diff options
author | Hook, Gary <Gary.Hook@amd.com> | 2019-06-27 18:16:23 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-07-03 16:13:12 +0200 |
commit | 52393d617af7b554f03531e6756facf2ea687d2e (patch) | |
tree | 56a98bb9cd2c002ffaecbf2ff702f3d3fbd2a430 /drivers/crypto/ccp/psp-dev.h | |
parent | crypto: doc - Fix formatting of new crypto engine content (diff) | |
download | linux-52393d617af7b554f03531e6756facf2ea687d2e.tar.xz linux-52393d617af7b554f03531e6756facf2ea687d2e.zip |
crypto: ccp - Validate the the error value used to index error messages
The error code read from the queue status register is only 6 bits wide,
but we need to verify its value is within range before indexing the error
messages.
Fixes: 81422badb3907 ("crypto: ccp - Make syslog errors human-readable")
Cc: <stable@vger.kernel.org>
Reported-by: Cfir Cohen <cfir@google.com>
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/psp-dev.h')
0 files changed, 0 insertions, 0 deletions