summaryrefslogtreecommitdiffstats
path: root/sys/dev/mps
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-10-07 21:23:42 +0000
committermarius <marius@FreeBSD.org>2011-10-07 21:23:42 +0000
commit7a6e7c47a29623af99450605dc5ab34ae3d706e9 (patch)
tree98c46bff54d0be32392f2f8ea35f053df8aea97d /sys/dev/mps
parent890596362264259cad90c931168bb69cad04ce59 (diff)
downloadFreeBSD-src-7a6e7c47a29623af99450605dc5ab34ae3d706e9.zip
FreeBSD-src-7a6e7c47a29623af99450605dc5ab34ae3d706e9.tar.gz
Sync with ahc(4)/ahd(4)/sym(4) etc:
Zero any sense not transferred by the device as the SCSI specification mandates that any untransferred data should be assumed to be zero. Reviewed by: ken
Diffstat (limited to 'sys/dev/mps')
-rw-r--r--sys/dev/mps/mps_sas.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c
index fb4e224..28ddca1 100644
--- a/sys/dev/mps/mps_sas.c
+++ b/sys/dev/mps/mps_sas.c
@@ -1675,6 +1675,7 @@ mpssas_scsiio_complete(struct mps_softc *sc, struct mps_command *cm)
sense_len = min(rep->SenseCount, ccb->csio.sense_len -
ccb->csio.sense_resid);
+ bzero(&ccb->csio.sense_data, sizeof(&ccb->csio.sense_data));
bcopy(cm->cm_sense, &ccb->csio.sense_data, sense_len);
ccb->ccb_h.status |= CAM_AUTOSNS_VALID;
}
OpenPOWER on IntegriCloud