scsi: pm80xx: Corrected dma_unmap_sg() parameter
authorDeepak Ukey <deepak.ukey@microchip.com>
Tue, 11 Sep 2018 08:48:03 +0000 (14:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 16:59:55 +0000 (17:59 +0100)
commitf84f69da3610b57a5f3720f8ca6943761203dfa9
tree3405061c21e0222e209cb3239e183c9fb68a16a3
parent12e8d5b469a7e88b4d6ef3386a83e3aebda84376
scsi: pm80xx: Corrected dma_unmap_sg() parameter

[ Upstream commit 76cb25b058034d37244be6aca97a2ad52a5fbcad ]

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

Signed-off-by: Deepak Ukey <deepak.ukey@microchip.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Acked-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/pm8001/pm8001_sas.c