]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: hisi_sas: fix dma_unmap_sg() parameter
authorXiang Chen <chenxiang66@hisilicon.com>
Fri, 8 Dec 2017 17:16:33 +0000 (01:16 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Dec 2017 02:25:02 +0000 (21:25 -0500)
commitdc1e4730e2b636065628f8427b675788bca83d34
tree027aba210c26cacd5b954d4baff0ea13fa347c09
parent39bade0c9fb11e04945a5749e01e65a376e4eb02
scsi: hisi_sas: fix dma_unmap_sg() parameter

For function dma_unmap_sg(), the <nents> parameter should be number of
elements in the scatterlist prior to the mapping, not after the mapping.

Fix this usage.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c