]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix handling of DHCP acknowledge
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Nov 2022 15:44:38 +0000 (16:44 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 2 Dec 2022 18:17:24 +0000 (19:17 +0100)
commit2896625fc97e2e78a3dec4110c9d78ce58f1b900
tree857fbaa82320dd2f8b03e18f48315662cc25fba7
parentb4a14aefd9aebc80ab54d96674f0a6e55c1e3ad1
efi_loader: fix handling of DHCP acknowledge

The dhcp command may be executed after the first UEFI command.
We should still update the EFI_PXE_BASE_CODE_PROTOCOL.

Don't leak content of prior acknowledge packages.

Handle failing allocation when calling malloc().

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_net.c