Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2019 03:47:24 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r346367 - stable/12/sys/dev/virtio/scsi
Message-ID:  <201904190347.x3J3lOEq093231@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904190347.x3J3lOEq093231>