svn commit: r346367 - stable/12/sys/dev/virtio/scsi
Alexander Motin
mav at FreeBSD.org
Fri Apr 19 03:47:25 UTC 2019
Author: mav
Date: Fri Apr 19 03:47:23 2019
New Revision: 346367
URL: https://svnweb.freebsd.org/changeset/base/346367
Log:
MFC r346161: Fix SCSI sense data pass through.
Modified:
stable/12/sys/dev/virtio/scsi/virtio_scsi.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/virtio/scsi/virtio_scsi.c
==============================================================================
--- stable/12/sys/dev/virtio/scsi/virtio_scsi.c Fri Apr 19 03:46:35 2019 (r346366)
+++ stable/12/sys/dev/virtio/scsi/virtio_scsi.c Fri Apr 19 03:47:23 2019 (r346367)
@@ -1310,8 +1310,7 @@ vtscsi_complete_scsi_cmd_response(struct vtscsi_softc
else
csio->sense_resid = 0;
- bzero(&csio->sense_data, sizeof(csio->sense_data));
- memcpy(cmd_resp->sense, &csio->sense_data,
+ memcpy(&csio->sense_data, cmd_resp->sense,
csio->sense_len - csio->sense_resid);
}
More information about the svn-src-stable-12
mailing list