diff options
author | James Smart <james.smart@emulex.com> | 2012-08-03 12:34:44 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-09-14 14:33:06 +0100 |
commit | 582dd796fbea1c7cc72c0856c005880fc3e0433f (patch) | |
tree | f4ef2d8e983d5f2ff8437721241a7cefd2897e70 /drivers/scsi/lpfc/lpfc_scsi.c | |
parent | 59df3acf19f8c4f18d4036d87b72b5c68befb9a7 (diff) | |
download | op-kernel-dev-582dd796fbea1c7cc72c0856c005880fc3e0433f.zip op-kernel-dev-582dd796fbea1c7cc72c0856c005880fc3e0433f.tar.gz |
[SCSI] lpfc 8.3.33: Check data transfer amount on write commands
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 925975d..ef5cae0 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -3552,11 +3552,11 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, /* * Check SLI validation that all the transfer was actually done - * (fcpi_parm should be zero). Apply check only to reads. + * (fcpi_parm should be zero). */ - } else if (fcpi_parm && (cmnd->sc_data_direction == DMA_FROM_DEVICE)) { + } else if (fcpi_parm) { lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR, - "9029 FCP Read Check Error Data: " + "9029 FCP Data Transfer Check Error: " "x%x x%x x%x x%x x%x\n", be32_to_cpu(fcpcmd->fcpDl), be32_to_cpu(fcprsp->rspResId), |