On Fri, Jun 20, 2025 at 09:29:26AM +0200, Thomas Fourier wrote: > The `dma_unmap_sg()` functions should be called with the same nents as the > `dma_map_sg()`, not the value the map function returned. > > Fixes: c957f8b3e2e5 ("crypto: inside-secure - avoid unmapping DMA memory that was not mapped") > Signed-off-by: Thomas Fourier <fourier.thomas@xxxxxxxxx> > Reviewed-by: Antoine Tenart <atenart@xxxxxxxxxx> > --- > drivers/crypto/inside-secure/safexcel_hash.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt