aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/of/fdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 135b8083212a..e36ff40011f4 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -186,7 +186,8 @@ static unsigned long unflatten_dt_node(struct boot_param_header *blob,
186 */ 186 */
187 fpsize = 1; 187 fpsize = 1;
188 allocl = 2; 188 allocl = 2;
189 l = 0; 189 l = 1;
190 *pathp = '\0';
190 } else { 191 } else {
191 /* account for '/' and path size minus terminal 0 192 /* account for '/' and path size minus terminal 0
192 * already in 'l' 193 * already in 'l'