diff options
-rw-r--r-- | drivers/md/dm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index a3f21dc02bd8..ba6934c3e2c5 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -2136,6 +2136,7 @@ static struct mapped_device *dm_find_md(dev_t dev) | |||
2136 | md = idr_find(&_minor_idr, minor); | 2136 | md = idr_find(&_minor_idr, minor); |
2137 | if (md && (md == MINOR_ALLOCED || | 2137 | if (md && (md == MINOR_ALLOCED || |
2138 | (MINOR(disk_devt(dm_disk(md))) != minor) || | 2138 | (MINOR(disk_devt(dm_disk(md))) != minor) || |
2139 | dm_deleting_md(md) || | ||
2139 | test_bit(DMF_FREEING, &md->flags))) { | 2140 | test_bit(DMF_FREEING, &md->flags))) { |
2140 | md = NULL; | 2141 | md = NULL; |
2141 | goto out; | 2142 | goto out; |