]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: Init the size before reading the devicetree
authorSimon Glass <sjg@chromium.org>
Thu, 27 Jul 2023 03:01:24 +0000 (21:01 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 19:30:54 +0000 (15:30 -0400)
commit2984d21a28f812c9c1fd2243cc72796f69a61585
tree73d60bf0b8a09427b05c4b6df6edc5e81036e3fb
parent6a8c2f9781cede2a7cb2b95ee6310cd53b1c20e2
bootstd: Init the size before reading the devicetree

The implementation in distro_efi_try_bootflow_files() does not pass a
valid size to bootmeth_common_read_file(), so this can fail if the
uninted value happens to be too small.

Fix this.

This was reported by someone but I cannot now find the email.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootmeth_efi.c