]> git.sur5r.net Git - u-boot/commitdiff
fdtgrep: Improve error handling with invalid device tree
authorSimon Glass <sjg@chromium.org>
Mon, 7 Mar 2016 02:45:32 +0000 (19:45 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 21:34:50 +0000 (15:34 -0600)
This tool requires that the aliases node be the first node in the tree. But
when it is not, it does not handle things gracefully. In fact it crashes.

Fix this, and add a more helpful error message.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com>

No differences found