projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[firefly-linux-kernel-4.4.55.git]
/
block
/
partition-generic.c
diff --git
a/block/partition-generic.c
b/block/partition-generic.c
index 3b030157ec85c45faedd520b6993cd440254d763..746935a5973ca6c76b8f66cfff8d58ce50566994 100644
(file)
--- a/
block/partition-generic.c
+++ b/
block/partition-generic.c
@@
-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)