提交 05f4647b 编写于 作者: R Ricky Liang 提交者: Rob Herring

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: NRicky Liang <jcliang@chromium.org>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 ebc5e200
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册