aboutsummaryrefslogtreecommitdiffstats
path: root/fs/partitions/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/partitions/check.c')
-rw-r--r--fs/partitions/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 24d2c56d7d2d..ace6d03602c7 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -375,7 +375,7 @@ int add_partition(struct gendisk *disk, int partno,
375 p->start_sect = start; 375 p->start_sect = start;
376 p->nr_sects = len; 376 p->nr_sects = len;
377 p->partno = partno; 377 p->partno = partno;
378 p->policy = disk->policy; 378 p->policy = get_disk_ro(disk);
379 379
380 dname = dev_name(ddev); 380 dname = dev_name(ddev);
381 if (isdigit(dname[strlen(dname) - 1])) 381 if (isdigit(dname[strlen(dname) - 1]))