]> git.baikalelectronics.ru Git - uboot.git/commit
bootstd: Init the size before reading extlinux file
authorSimon Glass <sjg@chromium.org>
Thu, 27 Jul 2023 03:01:25 +0000 (21:01 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 19:30:54 +0000 (15:30 -0400)
commit8e89d4b7b6a657875ff131d7e422ff889a418e65
tree9e95ad9c42383955460fc39eb095bcedb333b846
parenta143962b8fbbb391305d5e4fa2636fd73eb99898
bootstd: Init the size before reading extlinux file

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

Fix this.

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