Author: mav Date: Fri Apr 12 18:54:09 2019 New Revision: 346161 URL: https://svnweb.freebsd.org/changeset/base/346161
Log: Fix SCSI sense data pass through. MFC after: 1 week Sponsored by: iXsystems, Inc. Modified: head/sys/dev/virtio/scsi/virtio_scsi.c Modified: head/sys/dev/virtio/scsi/virtio_scsi.c ============================================================================== --- head/sys/dev/virtio/scsi/virtio_scsi.c Fri Apr 12 18:35:14 2019 (r346160) +++ head/sys/dev/virtio/scsi/virtio_scsi.c Fri Apr 12 18:54:09 2019 (r346161) @@ -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); } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"