]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - Fix sizeof() mismatch
authorColin Ian King <colin.king@canonical.com>
Sat, 10 Oct 2020 16:47:36 +0000 (17:47 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Oct 2020 06:34:45 +0000 (17:34 +1100)
commit9e32246b14c446db8010263c3a0d65b26e23a40a
tree5e401558022de87d9a628d1fcf7813421b886315
parent41d17e2b27ac9a69eae4fe9b6ad6dac9fde6946d
crypto: inside-secure - Fix sizeof() mismatch

An incorrect sizeof() is being used, sizeof(priv->ring[i].rdr_req) is
not correct, it should be sizeof(*priv->ring[i].rdr_req). Note that
since the size of ** is the same size as * this is not causing any
issues.

Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")
Fixes: b5b31ffd7246 ("crypto: inside-secure - remove request list to improve performance")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c