]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt: Check for a valid fdt in oftree_ensure()
authorSimon Glass <sjg@chromium.org>
Sun, 12 Nov 2023 15:27:45 +0000 (08:27 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 23:39:05 +0000 (18:39 -0500)
commit9578dd856a72b0412fa65480d8e3c76a52a6cba1
tree8140d4fdb34a26ae9bc091a84f11cbae2a7b4f85
parent1de1a0348755ad5e57790a39059eceeb8e8aba42
fdt: Check for a valid fdt in oftree_ensure()

Check the header before starting to use it, since this could provide
very confusing later, when ofnode calls start to fail.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c