aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libfc/fc_fcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c
index f440aaca39c2..ecc72612c385 100644
--- a/drivers/scsi/libfc/fc_fcp.c
+++ b/drivers/scsi/libfc/fc_fcp.c
@@ -1810,12 +1810,12 @@ static void fc_io_compl(struct fc_fcp_pkt *fsp)
1810 sc_cmd->result = DID_ERROR << 16; 1810 sc_cmd->result = DID_ERROR << 16;
1811 break; 1811 break;
1812 case FC_DATA_UNDRUN: 1812 case FC_DATA_UNDRUN:
1813 if (fsp->cdb_status == 0) { 1813 if ((fsp->cdb_status == 0) && !(fsp->req_flags & FC_SRB_READ)) {
1814 /* 1814 /*
1815 * scsi status is good but transport level 1815 * scsi status is good but transport level
1816 * underrun. for read it should be an error?? 1816 * underrun.
1817 */ 1817 */
1818 sc_cmd->result = (DID_OK << 16) | fsp->cdb_status; 1818 sc_cmd->result = DID_OK << 16;
1819 } else { 1819 } else {
1820 /* 1820 /*
1821 * scsi got underrun, this is an error 1821 * scsi got underrun, this is an error