diff options
author | mjacob <mjacob@FreeBSD.org> | 2004-01-29 06:36:30 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2004-01-29 06:36:30 +0000 |
commit | f84d608146b95c712400c53e7a18c6e0b1f91519 (patch) | |
tree | 9b7615603a32d12902a87f0fc5658d424624fbbf | |
parent | 547b42ac2ed98223e223fbfff9b2a3138043fed1 (diff) | |
download | FreeBSD-src-f84d608146b95c712400c53e7a18c6e0b1f91519.zip FreeBSD-src-f84d608146b95c712400c53e7a18c6e0b1f91519.tar.gz |
Fix a bug where we never managed to include the sense data we wanted to send.
-rw-r--r-- | sys/dev/isp/isp_target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c index 33e8262..03e71ee 100644 --- a/sys/dev/isp/isp_target.c +++ b/sys/dev/isp/isp_target.c @@ -447,7 +447,7 @@ isp_endcmd(struct ispsoftc *isp, void *arg, u_int32_t code, u_int16_t hdl) cto->ct_lun = aep->at_lun; } cto->ct_rxid = aep->at_rxid; - cto->rsp.m1.ct_scsi_status = sts & 0xff; + cto->rsp.m1.ct_scsi_status = sts; cto->ct_flags = CT2_SENDSTATUS | CT2_NO_DATA | CT2_FLAG_MODE1; if (hdl == 0) { cto->ct_flags |= CT2_CCINCR; @@ -456,7 +456,7 @@ isp_endcmd(struct ispsoftc *isp, void *arg, u_int32_t code, u_int16_t hdl) cto->ct_resid = aep->at_datalen; cto->rsp.m1.ct_scsi_status |= CT2_DATA_UNDER; } - if ((sts & 0xff) == SCSI_CHECK && (sts & ECMD_SVALID)) { + if (sts == SCSI_CHECK && (code & ECMD_SVALID)) { cto->rsp.m1.ct_resp[0] = 0xf0; cto->rsp.m1.ct_resp[2] = (code >> 12) & 0xf; cto->rsp.m1.ct_resp[7] = 8; |