Date: Sat, 18 Jan 2014 03:45:07 +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-8@freebsd.org Subject: svn commit: r260840 - stable/8/sys/dev/virtio/scsi Message-ID: <201401180345.s0I3j7dS045877@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bryanv Date: Sat Jan 18 03:45:07 2014 New Revision: 260840 URL: http://svnweb.freebsd.org/changeset/base/260840 Log: MFC r260566: Remove incorrect bit shift when assigning the LUN request field Modified: stable/8/sys/dev/virtio/scsi/virtio_scsi.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/dev/ (props changed) stable/8/sys/dev/virtio/ (props changed) Modified: stable/8/sys/dev/virtio/scsi/virtio_scsi.c ============================================================================== --- stable/8/sys/dev/virtio/scsi/virtio_scsi.c Sat Jan 18 03:44:43 2014 (r260839) +++ stable/8/sys/dev/virtio/scsi/virtio_scsi.c Sat Jan 18 03:45:07 2014 (r260840) @@ -1561,7 +1561,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?201401180345.s0I3j7dS045877>