summaryrefslogtreecommitdiff
path: root/drivers/md/dm-unstripe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-unstripe.c')
-rw-r--r--drivers/md/dm-unstripe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-unstripe.c b/drivers/md/dm-unstripe.c
index 954b7ab4e684..e673dacf6418 100644
--- a/drivers/md/dm-unstripe.c
+++ b/drivers/md/dm-unstripe.c
@@ -78,7 +78,7 @@ static int unstripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
goto err;
}
- if (sscanf(argv[4], "%llu%c", &start, &dummy) != 1) {
+ if (sscanf(argv[4], "%llu%c", &start, &dummy) != 1 || start != (sector_t)start) {
ti->error = "Invalid striped device offset";
goto err;
}