]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/partitions/check.c
block: allow disk to have extended device number
[mirror_ubuntu-bionic-kernel.git] / fs / partitions / check.c
index 772b2ed8d239ae1edf17456cee0a2b75b8bc66a0..0e411603fdf5287cc977a8b0f91616bb18392c56 100644 (file)
@@ -593,6 +593,7 @@ void del_gendisk(struct gendisk *disk)
        disk_part_iter_exit(&piter);
 
        invalidate_partition(disk, 0);
+       blk_free_devt(disk_to_dev(disk)->devt);
        set_capacity(disk, 0);
        disk->flags &= ~GENHD_FL_UP;
        unlink_gendisk(disk);