diff options
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r-- | drivers/block/ub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 1591f61b6c60..40d03cf63f2e 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -739,7 +739,7 @@ static void ub_cmd_build_block(struct ub_dev *sc, struct ub_lun *lun, | |||
739 | cmd->cdb[8] = nblks; | 739 | cmd->cdb[8] = nblks; |
740 | cmd->cdb_len = 10; | 740 | cmd->cdb_len = 10; |
741 | 741 | ||
742 | cmd->len = blk_rq_sectors(rq) * 512; | 742 | cmd->len = blk_rq_bytes(rq); |
743 | } | 743 | } |
744 | 744 | ||
745 | static void ub_cmd_build_packet(struct ub_dev *sc, struct ub_lun *lun, | 745 | static void ub_cmd_build_packet(struct ub_dev *sc, struct ub_lun *lun, |