projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: cmdlinepart: allow small partitions
[deliverable/linux.git]
/
drivers
/
mtd
/
cmdlinepart.c
diff --git
a/drivers/mtd/cmdlinepart.c
b/drivers/mtd/cmdlinepart.c
index c8503006f17aaf63714cdd98f5e8fe9c80da8c78..477923a8b86fc531f21073e0d3a3d5de682e127d 100644
(file)
--- a/
drivers/mtd/cmdlinepart.c
+++ b/
drivers/mtd/cmdlinepart.c
@@
-115,9
+115,8
@@
static struct mtd_partition * newpart(char *s,
s++;
} else {
size = memparse(s, &s);
- if (size < PAGE_SIZE) {
- printk(KERN_ERR ERRP "partition size too small (%llx)\n",
- size);
+ if (!size) {
+ printk(KERN_ERR ERRP "partition has size 0\n");
return ERR_PTR(-EINVAL);
}
}
This page took
0.026917 seconds
and
5
git commands to generate.