mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[SCSI] ibmvfc: Fix invalid error response handling
Fix an obvious bug in processing error responses for SCSI commands which can result in successful responses being incorrectly returned with DID_ERROR. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
601e763825
commit
4a2837d4fc
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ static int ibmvfc_get_err_result(struct ibmvfc_cmd *vfc_cmd)
|
||||||
int fc_rsp_len = rsp->fcp_rsp_len;
|
int fc_rsp_len = rsp->fcp_rsp_len;
|
||||||
|
|
||||||
if ((rsp->flags & FCP_RSP_LEN_VALID) &&
|
if ((rsp->flags & FCP_RSP_LEN_VALID) &&
|
||||||
((!fc_rsp_len && fc_rsp_len != 4 && fc_rsp_len != 8) ||
|
((fc_rsp_len && fc_rsp_len != 4 && fc_rsp_len != 8) ||
|
||||||
rsp->data.info.rsp_code))
|
rsp->data.info.rsp_code))
|
||||||
return DID_ERROR << 16;
|
return DID_ERROR << 16;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue