diff options
Diffstat (limited to 'fs/partitions/check.c')
-rw-r--r-- | fs/partitions/check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 772b2ed8d239..0e411603fdf5 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -593,6 +593,7 @@ void del_gendisk(struct gendisk *disk) | |||
593 | disk_part_iter_exit(&piter); | 593 | disk_part_iter_exit(&piter); |
594 | 594 | ||
595 | invalidate_partition(disk, 0); | 595 | invalidate_partition(disk, 0); |
596 | blk_free_devt(disk_to_dev(disk)->devt); | ||
596 | set_capacity(disk, 0); | 597 | set_capacity(disk, 0); |
597 | disk->flags &= ~GENHD_FL_UP; | 598 | disk->flags &= ~GENHD_FL_UP; |
598 | unlink_gendisk(disk); | 599 | unlink_gendisk(disk); |