]> 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)
committerEmmanuel Vadot <manu@FreeBSD.org>
Fri, 14 Jan 2022 13:44:36 +0000 (14:44 +0100)
commitb47fc941b0abcb6462c7a0a0d15c7fee5873eb1e
treee29cbc33334d2512f08362602d6e21a9cf63f0ae
parent3c49f0f9afd5fbc3abb896bec44f7e936c228bb9
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.

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

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