Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05f4647b authored by Ricky Liang's avatar Ricky Liang Committed by Rob Herring
Browse files

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: default avatarRicky Liang <jcliang@chromium.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent ebc5e200
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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