linux_dsm_epyc7002/drivers/crypto/inside-secure
Colin Ian King f7428e7ca8 crypto: inside-secure - Fix sizeof() mismatch
[ Upstream commit c98e233062cd9d0e2f10e445a671f0799daaef67 ]

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: 9744fec95f ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:00 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
safexcel_cipher.c crypto: inside-secure - Reuse code in safexcel_hmac_alg_setkey 2020-09-25 17:48:13 +10:00
safexcel_hash.c crypto: inside-secure - Reuse code in safexcel_hmac_alg_setkey 2020-09-25 17:48:13 +10:00
safexcel_ring.c crypto: inside-secure - Prevent missing of processing errors 2020-09-18 17:20:10 +10:00
safexcel.c crypto: inside-secure - Fix sizeof() mismatch 2020-12-30 11:53:00 +01:00
safexcel.h crypto: inside-secure - Reuse code in safexcel_hmac_alg_setkey 2020-09-25 17:48:13 +10:00