]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: mvsas: Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Fri, 27 Jun 2025 13:48:18 +0000 (15:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:03 +0000 (12:05 +0200)
commit025e900079e29ef841412c27ea58bed267719e38
tree74e15ddae16325300b75d1148f999eb515fa932c
parentf17e83c12efcf2f806a59636dc11189120b8d17c
scsi: mvsas: Fix dma_unmap_sg() nents value

[ Upstream commit 0141618727bc929fe868153d21797f10ce5bef3f ]

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: b5762948263d ("[SCSI] mvsas: Add Marvell 6440 SAS/SATA driver")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://lore.kernel.org/r/20250627134822.234813-2-fourier.thomas@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/mvsas/mv_sas.c