fs: partitions:

Fix new partitions size limit bug. Make no sense compare sector_t size
    to PAGE_SIZE, and that will fail partition add when too small part definition in
    parameter. Now, NO LIMIT for partition size.
This commit is contained in:
lintao
2014-05-27 16:32:17 +08:00
parent af1283a6fd
commit 1fbb36ebab

View File

@@ -73,7 +73,7 @@ static struct mtd_partition * newpart(char *s,
else
{
size = memparse(s, &s);
if (size < PAGE_SIZE)
if (size < (PAGE_SIZE)>>9)
{
printk(KERN_ERR ERRP "partition size too small (%llx)\n", size);
return NULL;