projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ccf8cf
)
UBI: amend array size
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Thu, 17 Jan 2008 13:35:57 +0000
(15:35 +0200)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 25 Jan 2008 14:41:24 +0000
(16:41 +0200)
Since the data offset parameter was removed, the size of
the parameters array is now 2, not 3.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/build.c
b/drivers/mtd/ubi/build.c
index
4e761e9
..
51bff88
100644
(file)
--- a/
drivers/mtd/ubi/build.c
+++ b/
drivers/mtd/ubi/build.c
@@
-1099,7
+1099,7
@@
static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
struct mtd_dev_param *p;
char buf[MTD_PARAM_LEN_MAX];
char *pbuf = &buf[0];
- char *tokens[
3] = {NULL,
NULL, NULL};
+ char *tokens[
2] = {
NULL, NULL};
if (!val)
return -EINVAL;
@@
-1129,7
+1129,7
@@
static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
if (buf[len - 1] == '\n')
buf[len - 1] = '\0';
- for (i = 0; i <
3
; i++)
+ for (i = 0; i <
2
; i++)
tokens[i] = strsep(&pbuf, ",");
if (pbuf) {