MFp4: (//depot/projects/mps/...)

Report data overruns properly.

Submitted by:	scottl
This commit is contained in:
Kenneth D. Merry 2010-09-14 17:22:06 +00:00
parent fa5383a260
commit cb1d2fe2cd

View file

@ -1219,11 +1219,9 @@ mpssas_scsiio_complete(struct mps_softc *sc, struct mps_command *cm)
ccb->ccb_h.status = CAM_REQ_CMP;
break;
case MPI2_IOCSTATUS_SCSI_DATA_OVERRUN:
/*
* XXX any way to report this?
*/
/* resid is ignored for this condition */
ccb->csio.resid = 0;
ccb->ccb_h.status = CAM_REQ_CMP;
ccb->ccb_h.status = CAM_DATA_RUN_ERR;
break;
case MPI2_IOCSTATUS_SCSI_INVALID_DEVHANDLE:
case MPI2_IOCSTATUS_SCSI_DEVICE_NOT_THERE: