aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/libfc/fc_fcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c
index ade962d74fb9..40ed7442d9df 100644
--- a/drivers/scsi/libfc/fc_fcp.c
+++ b/drivers/scsi/libfc/fc_fcp.c
@@ -1849,7 +1849,8 @@ static void fc_io_compl(struct fc_fcp_pkt *fsp)
1849 * scsi status is good but transport level 1849 * scsi status is good but transport level
1850 * underrun. 1850 * underrun.
1851 */ 1851 */
1852 sc_cmd->result = DID_OK << 16; 1852 sc_cmd->result = (fsp->state & FC_SRB_RCV_STATUS ?
1853 DID_OK : DID_ERROR) << 16;
1853 } else { 1854 } else {
1854 /* 1855 /*
1855 * scsi got underrun, this is an error 1856 * scsi got underrun, this is an error