]> git.ipfire.org Git - thirdparty/linux.git/commit
Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 30 Jun 2025 09:23:46 +0000 (11:23 +0200)
committerLeon Romanovsky <leon@kernel.org>
Wed, 2 Jul 2025 09:11:44 +0000 (05:11 -0400)
commit1db50f7b7a793670adcf062df9ff27798829d963
treebe9edfde8b0852f107215ff4355c0012c9a268b9
parent449728196d65fce513dbacf4d3696764be1c6524
Fix dma_unmap_sg() nents value

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: ed10435d3583 ("RDMA/erdma: Implement hierarchical MTT")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20250630092346.81017-2-fourier.thomas@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_verbs.c