projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34c3c0e
)
Fixed an OF-tree off-by-one bug when adding a new property name.
author
Zhang Wei
<wei.zhang@freescale.com>
Mon, 28 Aug 2006 06:25:31 +0000
(14:25 +0800)
committer
Jon Loeliger
<jdl@freescale.com>
Tue, 29 Aug 2006 13:11:34 +0000
(08:11 -0500)
This bug will cause the kernel booting to pause a long time.
Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
common/ft_build.c
patch
|
blob
|
history
diff --git
a/common/ft_build.c
b/common/ft_build.c
index
b5a997c
..
b5937e3
100644
(file)
--- a/
common/ft_build.c
+++ b/
common/ft_build.c
@@
-103,7
+103,7
@@
void ft_prop(struct ft_cxt *cxt, const char *name, const void *data, int sz)
if (off == -1) {
memcpy(cxt->p_end, name, strlen(name) + 1);
off = cxt->p_end - cxt->p;
- cxt->p_end += strlen(name) +
2
;
+ cxt->p_end += strlen(name) +
1
;
}
/* now put offset from beginning of *STRUCTURE* */