of: fix handling of '/' in options for of_find_node_by_path()
authorLeif Lindholm <leif.lindholm@linaro.org>
Fri, 6 Mar 2015 16:52:53 +0000 (16:52 +0000)
committerRob Herring <robh@kernel.org>
Tue, 10 Mar 2015 15:34:35 +0000 (10:34 -0500)
commit106937e8ccdcf0f4b95fbf0fe9abd42766cade33
tree00856969bfbf6f95206d2265d0788bfb02650294
parent649022e08e4798ffb6e9b11c56ee6b2c62465d11
of: fix handling of '/' in options for of_find_node_by_path()

Ensure proper handling of paths with appended options (after ':'),
where those options may contain a '/'.

Fixes: 7914a7c5651a ("of: support passing console options with stdout-path")
Reported-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Cc: <stable@vger.kernel.org> # 3.19
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c