diff options
author | Zhang Wei <wei.zhang@freescale.com> | 2006-08-28 06:25:31 (GMT) |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2006-08-29 13:11:34 (GMT) |
commit | 2f15776ccc6dc32377d8ba9652b8f58059c27c6d (patch) | |
tree | 582d201de9762ec49a3a8e7fab9b1c8a85d9acfe /common | |
parent | 34c3c0e01dbf1f8cc2bd08de92f2b89ba84921eb (diff) | |
download | u-boot-2f15776ccc6dc32377d8ba9652b8f58059c27c6d.tar.xz |
Fixed an OF-tree off-by-one bug when adding a new property name.
This bug will cause the kernel booting to pause a long time.
Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/ft_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ft_build.c b/common/ft_build.c index b5a997c..b5937e3 100644 --- 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* */ |