]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: bug in erroring out upon FCP_RSP_LEN_VAL in fc_fcp_resp
authorYi Zou <yi.zou@intel.com>
Fri, 9 Apr 2010 21:23:05 +0000 (14:23 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 19:02:40 +0000 (14:02 -0500)
commitdc0b89de14826cdc586a76271385022d9c8a719f
tree1b0abf1576e58549f3a89e218e3ab67e55f205e1
parent0b3cf8c8de41ebe8473e84eed3952e60544f7cf4
[SCSI] libfc: bug in erroring out upon FCP_RSP_LEN_VAL in fc_fcp_resp

fc_fcp_resp is assuming when FCP_SNS_LEN_VAL is set, the FCP_RSP_LEN_VAL
is not, which is not true. This leads to not copying the sense data and
error out a valid FCP_RSP.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c