aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2013-09-06 12:19:17 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-09-10 20:05:18 -0400
commit26373d23d5f5346b261aea6c7b913b70f1ffaf0f (patch)
tree04cbb7a0eb032dfa367148715ffc6ac8bc7c9cec /drivers
parent4aa74c3c3134a1f6ad96db4dd5e28ac305d4d519 (diff)
[SCSI] lpfc 8.3.42: Back out data count,(residual fcfi_parm) fix for bad target.
Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 49916a952bfa..46c4f1ba2475 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -3966,11 +3966,11 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd,
3966 3966
3967 /* 3967 /*
3968 * Check SLI validation that all the transfer was actually done 3968 * Check SLI validation that all the transfer was actually done
3969 * (fcpi_parm should be zero). 3969 * (fcpi_parm should be zero). Apply check only to reads.
3970 */ 3970 */
3971 } else if (fcpi_parm) { 3971 } else if (fcpi_parm && (cmnd->sc_data_direction == DMA_FROM_DEVICE)) {
3972 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR, 3972 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR,
3973 "9029 FCP Data Transfer Check Error: " 3973 "9029 FCP Read Check Error Data: "
3974 "x%x x%x x%x x%x x%x\n", 3974 "x%x x%x x%x x%x x%x\n",
3975 be32_to_cpu(fcpcmd->fcpDl), 3975 be32_to_cpu(fcpcmd->fcpDl),
3976 be32_to_cpu(fcprsp->rspResId), 3976 be32_to_cpu(fcprsp->rspResId),