Upstream already got this fix, in a slightly different form. Use theirs.
authorDavid Given <dg@cowlark.com>
Sat, 17 Oct 2015 22:28:33 +0000 (00:28 +0200)
committerDavid Given <dg@cowlark.com>
Sat, 17 Oct 2015 22:28:33 +0000 (00:28 +0200)
Kernel/dev/blkdev.c

index 8143509..2bbc247 100644 (file)
@@ -126,7 +126,7 @@ static int blkdev_transfer(uint8_t minor, uint8_t rawflag)
             goto xferfail;
         blk_op.nblock -= n;
         count += n;
-               blk_op.addr += n<<BLKSHIFT;
+               blk_op.addr += n * BLKSIZE;
                blk_op.lba += n;
     }