On Thu, Jun 27, 2019 at 04:16:23PM +0000, Hook, Gary wrote:
> 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")
>
> Reported-by: Cfir Cohen <[email protected]>
> Signed-off-by: Gary R Hook <[email protected]>
> ---
>
> Changes since v1:
> - change parameter type to unsigned int and remove a check
>
> drivers/crypto/ccp/ccp-dev.c | 96
> ++++++++++++++++++++++--------------------
> drivers/crypto/ccp/ccp-dev.h | 2 -
> 2 files changed, 52 insertions(+), 46 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt