Skip to content

Commit

Permalink
of/fdt: fix allocation size for device node path
Browse files Browse the repository at this point in the history
The allocation size of device node path is off by one which drops the
'\0' terminator.

Signed-off-by: Ricky Liang <jcliang@chromium.org>
Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
Ricky Liang authored and Rob Herring committed Apr 15, 2015
1 parent ebc5e20 commit 05f4647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/fdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static void * unflatten_dt_node(void *blob,
if (!pathp)
return mem;

allocl = l++;
allocl = ++l;

/* version 0x10 has a more compact unit name here instead of the full
* path. we accumulate the full path size using "fpsize", we'll rebuild
Expand Down

0 comments on commit 05f4647

Please sign in to comment.