dm-buffered: don't limit bc->start to ti->len >> 1 There is no need to restrict bc->start. bc->start is the offset on the underlying partition, ti->len is the size of the table line containing the target. These two values have no relationship, so there's no need to limit bc->start to ti->len >> 1. Signed-off-by: Mikulas Patocka --- drivers/md/dm-buffered-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/drivers/md/dm-buffered-target.c =================================================================== --- linux-2.6.orig/drivers/md/dm-buffered-target.c +++ linux-2.6/drivers/md/dm-buffered-target.c @@ -631,7 +631,7 @@ static int buffered_ctr(struct dm_target /* Processs sector offset. */ arg = dm_shift_arg(&as); - r = (kstrtoull(arg, 10, (u64 *)&bc->start) || bc->start >= (ti->len >> 1)) ? -EINVAL : 0; + r = kstrtoull(arg, 10, (u64 *)&bc->start) ? -EINVAL : 0; if (r) { ti->error = "Invalid sector offset"; goto bad;