diff options
Diffstat (limited to 'drivers/md/linear.c')
-rw-r--r-- | drivers/md/linear.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c index dda2f1b64a6d..564c390f8a1b 100644 --- a/drivers/md/linear.c +++ b/drivers/md/linear.c | |||
@@ -189,6 +189,8 @@ static int linear_run (mddev_t *mddev) | |||
189 | { | 189 | { |
190 | linear_conf_t *conf; | 190 | linear_conf_t *conf; |
191 | 191 | ||
192 | if (md_check_no_bitmap(mddev)) | ||
193 | return -EINVAL; | ||
192 | mddev->queue->queue_lock = &mddev->queue->__queue_lock; | 194 | mddev->queue->queue_lock = &mddev->queue->__queue_lock; |
193 | conf = linear_conf(mddev, mddev->raid_disks); | 195 | conf = linear_conf(mddev, mddev->raid_disks); |
194 | 196 | ||