mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user