summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2000-01-14 03:39:30 +0000
committergibbs <gibbs@FreeBSD.org>2000-01-14 03:39:30 +0000
commit85f2a7df4d42096e3fb6e057e3bb81acc6621f80 (patch)
treeab4d4bbfbfa846a575db2e08d5d3554eaa11888f /sys
parentb65c0476391f480e15533beca83d11e18ff626d0 (diff)
downloadFreeBSD-src-85f2a7df4d42096e3fb6e057e3bb81acc6621f80.zip
FreeBSD-src-85f2a7df4d42096e3fb6e057e3bb81acc6621f80.tar.gz
The error status for a scsi status error is "CAM_SCSI_STATUS_ERROR", not 0.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/amd/amd.c3
-rw-r--r--sys/pci/amd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/amd/amd.c b/sys/dev/amd/amd.c
index d1861df..decdfc3 100644
--- a/sys/dev/amd/amd.c
+++ b/sys/dev/amd/amd.c
@@ -30,6 +30,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*********************************************************************
+ * $FreeBSD$
*/
/*
@@ -1908,7 +1909,7 @@ SRBdone(struct amd_softc *amd, struct amd_srb *pSRB)
} else {
pcsio->scsi_status = SCSI_STATUS_CHECK_COND;
}
- pccb->ccb_h.status = CAM_AUTOSNS_VALID;
+ pccb->ccb_h.status = CAM_AUTOSNS_VALID|CAM_SCSI_STATUS_ERROR;
goto ckc_e;
}
if (status) {
diff --git a/sys/pci/amd.c b/sys/pci/amd.c
index d1861df..decdfc3 100644
--- a/sys/pci/amd.c
+++ b/sys/pci/amd.c
@@ -30,6 +30,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*********************************************************************
+ * $FreeBSD$
*/
/*
@@ -1908,7 +1909,7 @@ SRBdone(struct amd_softc *amd, struct amd_srb *pSRB)
} else {
pcsio->scsi_status = SCSI_STATUS_CHECK_COND;
}
- pccb->ccb_h.status = CAM_AUTOSNS_VALID;
+ pccb->ccb_h.status = CAM_AUTOSNS_VALID|CAM_SCSI_STATUS_ERROR;
goto ckc_e;
}
if (status) {
OpenPOWER on IntegriCloud