]> git.dujemihanovic.xyz Git - u-boot.git/commit
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)
commit9404fc85ab2e60fb81c8faaa58349ee1187a2501
tree5d2065b247ca1f0408c9803522a8c65d3db53b10
parentab761ce9f9a88067c5834ce6660ba90493a783ea
fdtgrep: Improve error handling with invalid device tree

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>
tools/fdtgrep.c