Skip to content
Snippets Groups Projects
Commit 88c8f492 authored by Zhang Wei's avatar Zhang Wei Committed by Matthew McClintock
Browse files

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: default avatarZhang Wei <wei.zhang@freescale.com>
(cherry picked from 2f15776c commit)
parent b2b78421
No related branches found
No related tags found
No related merge requests found
......@@ -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* */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment