u-boot/test/py/tests/test_efi_secboot
Heinrich Schuchardt 566f067349 efi_loader: improve error handling in try_load_entry()
The image is not unloaded if a security violation occurs.

If efi_set_load_options() fails, we do not free the memory allocated for
the optional data. We do not unload the image.

* Unload the image if a security violation occurs.
* Free load_options if efi_set_load_options() fails.
* Unload the image if efi_set_load_options() fails.

Fixes: 53f6a5aa86 ("efi_loader: Replace config option for initrd loading")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2024-05-01 07:38:29 +02:00
..
conftest.py global: Use proper project name U-Boot 2023-06-12 13:24:31 +02:00
defs.py test: fix pydoc issues for EFI tests 2023-05-04 09:57:43 +02:00
forge_image.sh test/py: efi_secboot: add a test for a forged signed image 2022-07-05 14:37:16 +02:00
openssl.cnf test/py: efi_secboot: add test for intermediate certificates 2020-08-13 22:37:36 +02:00
test_authvar.py efi_loader: use ':' as separator for setenv -i 2020-08-24 16:37:53 +02:00
test_signed_intca.py efi_loader: improve error handling in try_load_entry() 2024-05-01 07:38:29 +02:00
test_signed.py efi_loader: improve error handling in try_load_entry() 2024-05-01 07:38:29 +02:00
test_unsigned.py efi_loader: improve error handling in try_load_entry() 2024-05-01 07:38:29 +02:00