Date: Sat, 18 Jan 2014 03:33:02 +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-10@freebsd.org Subject: svn commit: r260837 - stable/10/sys/dev/virtio/scsi Message-ID: <201401180333.s0I3X2bP041847@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bryanv Date: Sat Jan 18 03:33:01 2014 New Revision: 260837 URL: http://svnweb.freebsd.org/changeset/base/260837 Log: MFC r260566: Remove incorrect bit shift when assigning the LUN request field Modified: stable/10/sys/dev/virtio/scsi/virtio_scsi.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/virtio/scsi/virtio_scsi.c ============================================================================== --- stable/10/sys/dev/virtio/scsi/virtio_scsi.c Sat Jan 18 02:20:10 2014 (r260836) +++ stable/10/sys/dev/virtio/scsi/virtio_scsi.c Sat Jan 18 03:33:01 2014 (r260837) @@ -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?201401180333.s0I3X2bP041847>