When we allocate space a buffer with some extra space for the FDT, adjust
authorkettenis <kettenis@openbsd.org>
Wed, 16 Mar 2022 22:32:50 +0000 (22:32 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 16 Mar 2022 22:32:50 +0000 (22:32 +0000)
commite95484295c0c3589b45ffebba2463be2b306c69a
treea64069a721413ecd480e4b8e4cb0fbf63f1efe14
parent8429d6e9ce5c724c187e435babcd58278f6d54a8
When we allocate space a buffer with some extra space for the FDT, adjust
the size of the FDT to reflect the size of that buffer.  This prevents
an FDT overflow if the original FDT doesn't have enough space for the
additional properties that we add to it in our bootloader.

Fixes boot on the mcbin.
tested by bluhm@, ok patrick@
sys/arch/arm64/stand/efiboot/efiboot.c