projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af1283a
)
fs: partitions:
author
lintao
<lintao@rock-chips.com>
Tue, 27 May 2014 08:32:17 +0000
(16:32 +0800)
committer
lintao
<lintao@rock-chips.com>
Tue, 27 May 2014 08:32:17 +0000
(16:32 +0800)
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.
block/partitions/mtdpart.c
patch
|
blob
|
history
diff --git
a/block/partitions/mtdpart.c
b/block/partitions/mtdpart.c
index ac2cf4d8efb5b9bca8b2e024c86f4cff0a8e5117..6f3e0044bfdbd7f3b543315e4693158680aa95a5 100755
(executable)
--- 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;