aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/md.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 8b303477c77b..d255997bf635 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3463,6 +3463,11 @@ static struct kobject *md_probe(dev_t dev, int *part, void *data)
3463 disk->fops = &md_fops; 3463 disk->fops = &md_fops;
3464 disk->private_data = mddev; 3464 disk->private_data = mddev;
3465 disk->queue = mddev->queue; 3465 disk->queue = mddev->queue;
3466 /* Allow extended partitions. This makes the
3467 * 'mdp' device redundant, but we can really
3468 * remove it now.
3469 */
3470 disk->flags |= GENHD_FL_EXT_DEVT;
3466 add_disk(disk); 3471 add_disk(disk);
3467 mddev->gendisk = disk; 3472 mddev->gendisk = disk;
3468 error = kobject_init_and_add(&mddev->kobj, &md_ktype, 3473 error = kobject_init_and_add(&mddev->kobj, &md_ktype,