]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: Fix dtb loading
authorEmmanuel Vadot <manu@FreeBSD.org>
Mon, 5 Jul 2021 13:50:39 +0000 (15:50 +0200)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 01:16:00 +0000 (20:16 -0500)
commit1748f0c6e1902a45f4148a2b2157a1f4dbdc7748
treeacb371a651299f403edb418a5a4487d0f77a85e2
parent869ec7d90917e3f6c6c7829e0e47703a2a27c69e
loader: Fix dtb loading

When calling file_findfile with only a type it returns
the first file matching the type. But in fdt_apply_overlays we
then iterate on the next files and try loading them as dtb overlays.
Fix this by checking the type one more time.

Reported by: Mark Millard <marklmi@yahoo.com>

(cherry picked from commit b464c459eaf4e63a3abaaa1ecf51c9d6e9f7521e)
stand/fdt/fdt_loader_cmd.c