]> git.ipfire.org Git - people/ms/linux.git/blobdiff - block/partition-generic.c
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
[people/ms/linux.git] / block / partition-generic.c
index 3b030157ec85c45faedd520b6993cd440254d763..746935a5973ca6c76b8f66cfff8d58ce50566994 100644 (file)
@@ -397,7 +397,7 @@ static int drop_partitions(struct gendisk *disk, struct block_device *bdev)
        struct hd_struct *part;
        int res;
 
-       if (bdev->bd_part_count)
+       if (bdev->bd_part_count || bdev->bd_super)
                return -EBUSY;
        res = invalidate_partition(disk, 0);
        if (res)