Fix for a problem found by Saar David <liorg@ged-I.com>: the missed << 24 added.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 3 Sep 2009 16:52:34 +0000 (16:52 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 3 Sep 2009 16:52:34 +0000 (16:52 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1073 d57e44dd-8a1f-0410-8b47-8ef2f437770f

usr/fileio/common.c

index 32f633b..fc257ea 100644 (file)
@@ -354,6 +354,7 @@ static int do_exec(struct vdisk_cmd *vcmd)
                lba_start |= ((uint64_t)cdb[3]) << 48;
                lba_start |= ((uint64_t)cdb[4]) << 40;
                lba_start |= ((uint64_t)cdb[5]) << 32;
+               lba_start |= ((uint64_t)cdb[6]) << 24;
                lba_start |= ((uint64_t)cdb[6]) << 16;
                lba_start |= ((uint64_t)cdb[7]) << 8;
                lba_start |= ((uint64_t)cdb[8]);