Skip to content
Commit 509b7455 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Rob Herring
Browse files

of/fdt: Don't copy garbage after "/" in root node path



The root node path must be internally converted to "/", or various
pieces of code looking for it that way will fail. The code to do
that however had a bug where we might incorrectly append pieces
of the original path from the fdt to the "/".

We should probably add a proper dedicated accessor for the root node
but in the meantime this patch should fix it.

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent 20663060
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment