diff options
author | Chad Dupuis <chad.dupuis@qlogic.com> | 2015-10-19 15:40:38 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-11-09 20:30:49 -0500 |
commit | adcf7dfbea80382457a552b4eb7aa2b7d9f76dac (patch) | |
tree | ed3f8bad81600874e01f2f973d86d2db64e1d5a7 /drivers/scsi/bnx2fc/bnx2fc_io.c | |
parent | 1fffa19991b5a907303ca3f09cf3d8e91b0bd911 (diff) |
bnx2fc: Fix FCP RSP residual parsing.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc_io.c')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_io.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index 30916fd3a9f0..8ae0621dbe28 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c | |||
@@ -1759,7 +1759,10 @@ static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req, | |||
1759 | int fcp_rsp_len = 0; | 1759 | int fcp_rsp_len = 0; |
1760 | 1760 | ||
1761 | io_req->fcp_status = FC_GOOD; | 1761 | io_req->fcp_status = FC_GOOD; |
1762 | io_req->fcp_resid = fcp_rsp->fcp_resid; | 1762 | io_req->fcp_resid = 0; |
1763 | if (rsp_flags & (FCOE_FCP_RSP_FLAGS_FCP_RESID_OVER | | ||
1764 | FCOE_FCP_RSP_FLAGS_FCP_RESID_UNDER)) | ||
1765 | io_req->fcp_resid = fcp_rsp->fcp_resid; | ||
1763 | 1766 | ||
1764 | io_req->scsi_comp_flags = rsp_flags; | 1767 | io_req->scsi_comp_flags = rsp_flags; |
1765 | CMD_SCSI_STATUS(sc_cmd) = io_req->cdb_status = | 1768 | CMD_SCSI_STATUS(sc_cmd) = io_req->cdb_status = |