diff options
author | Ricky Liang <jcliang@chromium.org> | 2015-04-14 00:36:05 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-04-14 20:35:45 -0400 |
commit | 05f4647b10233dd2e18106abb16ff7fb68abbd08 (patch) | |
tree | 4906e9acafeb8453d083af71720cc7055caa1bcb | |
parent | ebc5e20082160df384dedbe1c95066c3e545b689 (diff) |
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>
-rw-r--r-- | drivers/of/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 4b15aa163b6e..cde35c5d0191 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c | |||
@@ -191,7 +191,7 @@ static void * unflatten_dt_node(void *blob, | |||
191 | if (!pathp) | 191 | if (!pathp) |
192 | return mem; | 192 | return mem; |
193 | 193 | ||
194 | allocl = l++; | 194 | allocl = ++l; |
195 | 195 | ||
196 | /* version 0x10 has a more compact unit name here instead of the full | 196 | /* version 0x10 has a more compact unit name here instead of the full |
197 | * path. we accumulate the full path size using "fpsize", we'll rebuild | 197 | * path. we accumulate the full path size using "fpsize", we'll rebuild |