1
0
Fork 0
alistair23-linux/drivers/crypto/inside-secure
Colin Ian King 9edff753ad crypto: inside-secure - Fix sizeof() mismatch
[ Upstream commit c98e233062 ]

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:51:03 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
safexcel.c crypto: inside-secure - Fix sizeof() mismatch 2020-12-30 11:51:03 +01:00
safexcel.h crypto: inside-secure - Probe transform record cache RAM sizes 2019-09-13 21:17:58 +10:00
safexcel_cipher.c crypto: inside-secure - Added support for basic AES-CCM 2019-09-05 14:37:30 +10:00
safexcel_hash.c crypto: inside-secure - Made .cra_priority value a define 2019-09-05 14:37:01 +10:00
safexcel_ring.c crypto: inside-secure - Added support for basic AES-GCM 2019-09-05 14:37:29 +10:00