]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:51 +0000 (11:25 +0100)
commit413de08ca4d81e78e50299293f4db4079615bbab
tree4241a0ea250eddf323143d38baddfa51783a4a69
parenteb9bc711140f0229f6cfa45cc97f9f5b01ab60ec
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: 9744fec95f06 ("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>
drivers/crypto/inside-secure/safexcel.c