mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 00:41:30 +01:00
The error status for a scsi status error is "CAM_SCSI_STATUS_ERROR", not 0.
This commit is contained in:
parent
9c0b8410b8
commit
9bfb3cb2c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55946
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user