Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2014 03:35:10 +0000 (UTC)
From:      Bryan Venteicher <bryanv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r260838 - stable/9/sys/dev/virtio/scsi
Message-ID:  <201401180335.s0I3ZAc1042127@svn.freebsd.org>

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



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