diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index aa79d55875f0..58e0b02a74c2 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -3683,7 +3683,7 @@ array_size_store(mddev_t *mddev, const char *buf, size_t len) | |||
3683 | if (strict_blocks_to_sectors(buf, §ors) < 0) | 3683 | if (strict_blocks_to_sectors(buf, §ors) < 0) |
3684 | return -EINVAL; | 3684 | return -EINVAL; |
3685 | if (mddev->pers && mddev->pers->size(mddev, 0, 0) < sectors) | 3685 | if (mddev->pers && mddev->pers->size(mddev, 0, 0) < sectors) |
3686 | return -EINVAL; | 3686 | return -E2BIG; |
3687 | 3687 | ||
3688 | mddev->external_size = 1; | 3688 | mddev->external_size = 1; |
3689 | } | 3689 | } |