aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 95466bb089ab..a2813fa06b7c 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2143,8 +2143,9 @@ rdev_size_store(mdk_rdev_t *rdev, const char *buf, size_t len)
2143 if (test_bit(AllReserved, &rdev2->flags) || 2143 if (test_bit(AllReserved, &rdev2->flags) ||
2144 (rdev->bdev == rdev2->bdev && 2144 (rdev->bdev == rdev2->bdev &&
2145 rdev != rdev2 && 2145 rdev != rdev2 &&
2146 overlaps(rdev->data_offset, rdev->size, 2146 overlaps(rdev->data_offset, rdev->size * 2,
2147 rdev2->data_offset, rdev2->size))) { 2147 rdev2->data_offset,
2148 rdev2->size * 2))) {
2148 overlap = 1; 2149 overlap = 1;
2149 break; 2150 break;
2150 } 2151 }