summaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorThomas Bourgoin <thomas.bourgoin@foss.st.com>2023-07-13 17:15:15 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2023-07-22 13:59:38 +1200
commitd9c83f71eeceed2cb54bb78be84f2d4055fd9a1f (patch)
treeb4ddbf90aafe9942ed269027a86e9cde85372769 /lib/mpi
parent0e99d38ff6ad4baf0c24ec0aca8a01c522ef4dcd (diff)
crypto: stm32 - fix loop iterating through scatterlist for DMA
We were reading the length of the scatterlist sg after copying value of tsg inside. So we are using the size of the previous scatterlist and for the first one we are using an unitialised value. Fix this by copying tsg in sg[0] before reading the size. Fixes : 8a1012d3f2ab ("crypto: stm32 - Support for STM32 HASH module") Cc: stable@vger.kernel.org Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions