diff options
Diffstat (limited to 'drivers/md/md.c')
-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 261322722c19..97852099defd 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -3359,9 +3359,9 @@ static struct kobject *md_probe(dev_t dev, int *part, void *data) | |||
3359 | disk->queue = mddev->queue; | 3359 | disk->queue = mddev->queue; |
3360 | add_disk(disk); | 3360 | add_disk(disk); |
3361 | mddev->gendisk = disk; | 3361 | mddev->gendisk = disk; |
3362 | mutex_unlock(&disks_mutex); | ||
3363 | error = kobject_init_and_add(&mddev->kobj, &md_ktype, &disk->dev.kobj, | 3362 | error = kobject_init_and_add(&mddev->kobj, &md_ktype, &disk->dev.kobj, |
3364 | "%s", "md"); | 3363 | "%s", "md"); |
3364 | mutex_unlock(&disks_mutex); | ||
3365 | if (error) | 3365 | if (error) |
3366 | printk(KERN_WARNING "md: cannot register %s/md - name in use\n", | 3366 | printk(KERN_WARNING "md: cannot register %s/md - name in use\n", |
3367 | disk->disk_name); | 3367 | disk->disk_name); |