1
0
Fork 0

of/fdt: fix allocation size for device node path

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>
hifive-unleashed-5.1
Ricky Liang 2015-04-14 12:36:05 +08:00 committed by Rob Herring
parent ebc5e20082
commit 05f4647b10
1 changed files with 1 additions and 1 deletions

View File

@ -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