diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 4899ebe767c86d342853397e23530cb3b0ea9eea..2cba557d9e61e10dad844dea12f134b4a4ee0d11 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -495,7 +495,7 @@ int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, return 0; } - if (blk_stack_limits(limits, &q->limits, start) < 0) + if (blk_stack_limits(limits, &q->limits, start << 9) < 0) DMWARN("%s: target device %s is misaligned", dm_device_name(ti->table->md), bdevname(bdev, b));