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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Jul 2025 00:57:18 +0000 (20:57 -0400)
commit0141618727bc929fe868153d21797f10ce5bef3f
tree81ad7322b727c35204b0aa2ac81f085e27cc3035
parent3a988d0b65d7d1713ce7596eae288a293f3b938e
scsi: mvsas: 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: 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>
drivers/scsi/mvsas/mv_sas.c