scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
authorVarun Prakash <varun@chelsio.com>
Fri, 5 Apr 2019 15:09:13 +0000 (20:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 15:52:09 +0000 (17:52 +0200)
commit0f9d5cd071078d6c67a813188dd153e73368d7f5
tree34f0e765d759d6c4d13b424c384a3c307264dc37
parentef29106690b019d5f3060245aab79dfa9fdc0ab5
scsi: csiostor: fix missing data copy in csio_scsi_err_handler()

[ Upstream commit 5c2442fd78998af60e13aba506d103f7f43f8701 ]

If scsi cmd sglist is not suitable for DDP then csiostor driver uses
preallocated buffers for DDP, because of this data copy is required from
DDP buffer to scsi cmd sglist before calling ->scsi_done().

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/csiostor/csio_scsi.c