summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/glue/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c
index facef51..d65acac 100644
--- a/linux/dev/glue/block.c
+++ b/linux/dev/glue/block.c
@@ -961,7 +961,7 @@ init_partition (struct name_map *np, kdev_t *dev,
if (ds->fops->open && (*ds->fops->open) (&d->inode, &d->file))
continue;
lp = read_bsd_label (d->inode.i_rdev);
- if (! lp)
+ if (! lp && gd->part[MINOR (d->inode.i_rdev)].nr_sects > PDLOCATION)
lp = read_vtoc (d->inode.i_rdev);
if (ds->fops->release)
(*ds->fops->release) (&d->inode, &d->file);