dm table: fix blk_stack_limits arg to use bytes not sectors
[cascardo/linux.git] / drivers / md / dm-table.c
index 4899ebe..2cba557 100644 (file)
@@ -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));