Skip to content

Commit

Permalink
fs: partitions:
Browse files Browse the repository at this point in the history
	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.
  • Loading branch information
Rockchip committed May 29, 2014
1 parent 83be97a commit f00a5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/partitions/mtdpart.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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)) //size in sector. unlimit partition size for lower requirement
{
printk(KERN_ERR ERRP "partition size too small (%llx)\n", size);
return NULL;
Expand Down

0 comments on commit f00a5a4

Please sign in to comment.