Revert "dm init: Handle minors larger than 255"
This reverts commit f0c0b03aca
.
This commit is contained in:
parent
9149b550c7
commit
55a8ad0391
1 changed files with 1 additions and 3 deletions
|
@ -207,10 +207,8 @@ static char __init *dm_parse_device_entry(struct dm_device *dev, char *str)
|
|||
strscpy(dev->dmi.uuid, field[1], sizeof(dev->dmi.uuid));
|
||||
/* minor */
|
||||
if (strlen(field[2])) {
|
||||
if (kstrtoull(field[2], 0, &dev->dmi.dev) ||
|
||||
dev->dmi.dev >= (1 << MINORBITS))
|
||||
if (kstrtoull(field[2], 0, &dev->dmi.dev))
|
||||
return ERR_PTR(-EINVAL);
|
||||
dev->dmi.dev = huge_encode_dev((dev_t)dev->dmi.dev);
|
||||
dev->dmi.flags |= DM_PERSISTENT_DEV_FLAG;
|
||||
}
|
||||
/* flags */
|
||||
|
|
Loading…
Reference in a new issue