scsi: dc395x: fix DMA API usage in sg_update_list
commitedc8ac1342d1e65bfb64e912fd783e28d0f881d9
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Oct 2018 14:17:15 +0000 (11 16:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:25:43 +0000 (28 18:25 +0100)
tree6d032f1ccc7b1c73b78eb6546762de269ad6efe7
parent738fd69851a1519d3b339e6fcb9b117bac3da080
scsi: dc395x: fix DMA API usage in sg_update_list

[ Upstream commit 6c404a68bf83b4135a8a9aa1c388ebdf98e8ba7f ]

We need to transfer device ownership to the CPU before we can manipulate
the mapped data.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/dc395x.c