Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adcf7dfb authored by Chad Dupuis's avatar Chad Dupuis Committed by James Bottomley
Browse files

bnx2fc: Fix FCP RSP residual parsing.

parent 1fffa199
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1759,6 +1759,9 @@ static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req,
	int fcp_rsp_len = 0;

	io_req->fcp_status = FC_GOOD;
	io_req->fcp_resid = 0;
	if (rsp_flags & (FCOE_FCP_RSP_FLAGS_FCP_RESID_OVER |
	    FCOE_FCP_RSP_FLAGS_FCP_RESID_UNDER))
		io_req->fcp_resid = fcp_rsp->fcp_resid;

	io_req->scsi_comp_flags = rsp_flags;