scsi: ibmvscsi_tgt: Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 30 Jun 2025 11:18:02 +0000 (13:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Jul 2025 00:56:49 +0000 (20:56 -0400)
commit023a293b9cd0bb86a9b50cd7688a3d9d266826db
tree83bb6b8047ebd440291b064e7f88bb9c46694e40
parent278577d85081717e6acb36af094d8556fcde56e5
scsi: ibmvscsi_tgt: 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: 88a678bbc34c ("ibmvscsis: Initial commit of IBM VSCSI Tgt Driver")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://lore.kernel.org/r/20250630111803.94389-2-fourier.thomas@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi_tgt/libsrp.c