svn commit: r260838 - stable/9/sys/dev/virtio/scsi

Bryan Venteicher bryanv at FreeBSD.org
Sat Jan 18 03:35:11 UTC 2014


Author: bryanv
Date: Sat Jan 18 03:35:10 2014
New Revision: 260838
URL: http://svnweb.freebsd.org/changeset/base/260838

Log:
  MFC r260566: Remove incorrect bit shift when assigning the LUN request field

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

Modified: stable/9/sys/dev/virtio/scsi/virtio_scsi.c
==============================================================================
--- stable/9/sys/dev/virtio/scsi/virtio_scsi.c	Sat Jan 18 03:33:01 2014	(r260837)
+++ stable/9/sys/dev/virtio/scsi/virtio_scsi.c	Sat Jan 18 03:35:10 2014	(r260838)
@@ -1539,7 +1539,7 @@ vtscsi_set_request_lun(struct ccb_hdr *c
 	lun[0] = 1;
 	lun[1] = ccbh->target_id;
 	lun[2] = 0x40 | ((ccbh->target_lun >> 8) & 0x3F);
-	lun[3] = (ccbh->target_lun >> 8) & 0xFF;
+	lun[3] = ccbh->target_lun & 0xFF;
 }
 
 static void


More information about the svn-src-stable-9 mailing list