aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 376f1ab48a24..c5f9918dab24 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1822,6 +1822,7 @@ static struct mapped_device *alloc_dev(int minor)
1822bad_bdev: 1822bad_bdev:
1823 destroy_workqueue(md->wq); 1823 destroy_workqueue(md->wq);
1824bad_thread: 1824bad_thread:
1825 del_gendisk(md->disk);
1825 put_disk(md->disk); 1826 put_disk(md->disk);
1826bad_disk: 1827bad_disk:
1827 blk_cleanup_queue(md->queue); 1828 blk_cleanup_queue(md->queue);