Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:07:59 -0000
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r346368 - stable/11/sys/dev/virtio/scsi
Message-ID:  <201904190347.x3J3lxSX093308@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Apr 19 03:47:59 2019
New Revision: 346368
URL: https://svnweb.freebsd.org/changeset/base/346368

Log:
  MFC r346161: Fix SCSI sense data pass through.

Modified:
  stable/11/sys/dev/virtio/scsi/virtio_scsi.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/virtio/scsi/virtio_scsi.c
==============================================================================
--- stable/11/sys/dev/virtio/scsi/virtio_scsi.c	Fri Apr 19 03:47:23 2019	(r346367)
+++ stable/11/sys/dev/virtio/scsi/virtio_scsi.c	Fri Apr 19 03:47:59 2019	(r346368)
@@ -1308,8 +1308,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?201904190347.x3J3lxSX093308>