Date: Fri, 12 Apr 2019 18:54:09 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r346161 - head/sys/dev/virtio/scsi Message-ID: <201904121854.x3CIs96c028293@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904121854.x3CIs96c028293>