From: lintao Date: Tue, 27 May 2014 08:32:17 +0000 (+0800) Subject: fs: partitions: X-Git-Tag: firefly_0821_release~5221 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1fbb36ebabe2214b30cb78b068fb44eea0d67d29;p=firefly-linux-kernel-4.4.55.git 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. --- diff --git a/block/partitions/mtdpart.c b/block/partitions/mtdpart.c index ac2cf4d8efb5..6f3e0044bfdb 100755 --- a/block/partitions/mtdpart.c +++ b/block/partitions/mtdpart.c @@ -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;