OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'linux-4.4' of git://github.com/skeggsb/linux into drm-fixes
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
block
/
partition-generic.c
diff --git
a/block/partition-generic.c
b/block/partition-generic.c
index
3b03015
..
746935a
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;
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)
return -EBUSY;
res = invalidate_partition(disk, 0);
if (res)