]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: NULL-terminate the root node path
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Nov 2012 15:14:38 +0000 (15:14 +0000)
committerRob Herring <rob.herring@calxeda.com>
Wed, 21 Nov 2012 04:58:53 +0000 (22:58 -0600)
commit7b39c8fd555d0b30f38d0241518475f7f94598c4
tree3886c78f4b5058b52b6f043e1b25b804297bd839
parent096ecbde732d35879e37a936206a0a113117fb16
of/fdt: NULL-terminate the root node path

Commit fd091105 (of/fdt: Don't copy garbage after "/" in root node path)
sets the path length to 0 to ignore any garbage after "/" in the root
node path. This has the side effect of also ignoring '\0' at the end of
the root node path. This patch sets the ignores the garbage by setting
the last character to '\0' and length to 1.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/fdt.c