scsi: g_NCR5380: Fix PDMA transfer size
authorOndrej Zary <linux@rainbow-software.org>
Mon, 3 Jul 2017 07:59:05 +0000 (03:59 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 7 Aug 2017 18:04:00 +0000 (14:04 -0400)
commit12b859b70661c5b7d0c37c33f03736b768552e35
treefc55c1ed0a7e05680862a43ae1d07745a0019d46
parente7e99d60ce63640b1f38e792c4931dd525c2fa1a
scsi: g_NCR5380: Fix PDMA transfer size

generic_NCR5380_dma_xfer_len() incorrectly uses cmd->transfersize which
causes rescan-scsi-bus and CD-ROM access to hang the system.  Use
cmd->SCp.this_residual instead, like other NCR5380 drivers.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/g_NCR5380.c