View | Details | Raw Unified | Return to bug 223813
Collapse All | Expand All

(-)sys/dev/mps/mps_user.c (-3 / +5 lines)
Lines 1036-1045 mps_user_pass_thru(struct mps_softc *sc, mps_pass_ Link Here
1036
			if (((MPI2_SCSI_IO_REPLY *)rpl)->SCSIState &
1036
			if (((MPI2_SCSI_IO_REPLY *)rpl)->SCSIState &
1037
			    MPI2_SCSI_STATE_AUTOSENSE_VALID) {
1037
			    MPI2_SCSI_STATE_AUTOSENSE_VALID) {
1038
				sense_len =
1038
				sense_len =
1039
				    MIN((le32toh(((MPI2_SCSI_IO_REPLY *)rpl)->SenseCount)),
1039
				    MIN((le32toh(((MPI2_SCSI_IO_REPLY *)rpl)->
1040
				    sizeof(struct scsi_sense_data));
1040
				    SenseCount)), sizeof(struct
1041
				    scsi_sense_data));
1041
				mps_unlock(sc);
1042
				mps_unlock(sc);
1042
				copyout(cm->cm_sense, cm->cm_req + 64, sense_len);
1043
				copyout(cm->cm_sense, (PTRIN(data->PtrReply +
1044
				    sizeof(MPI2_SCSI_IO_REPLY))), sense_len);
1043
				mps_lock(sc);
1045
				mps_lock(sc);
1044
			}
1046
			}
1045
		}
1047
		}

Return to bug 223813