u-boot-brain/lib/efi_loader
Heinrich Schuchardt 16112f9f48 efi_loader: error handling in efi_setup_loaded_image()
In case of an error we should set the returned pointers to NULL. This
ensures that an illegal free does not occur even if the caller calls
free() for the handles.

If protocols cannot be installed, release all resources.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2019-02-16 15:42:20 +01:00
..
.gitignore lib: gitignore *.elf and *.so generated by efi_loader 2017-01-09 10:30:24 -05:00
efi_acpi.c efi_loader: Install ACPI configuration tables 2018-07-02 09:23:28 +08:00
efi_bootmgr.c efi_loader: bootmgr: add load option helper functions 2018-12-03 00:17:45 +01:00
efi_boottime.c efi_loader: error handling in efi_setup_loaded_image() 2019-02-16 15:42:20 +01:00
efi_console.c efi_loader: fix typos 2018-12-02 21:59:37 +01:00
efi_device_path_to_text.c efi_loader: fix typos 2018-12-02 21:59:37 +01:00
efi_device_path_utilities.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_device_path.c efi_loader: efi_dp_split_file_path() error handling 2019-02-16 15:42:19 +01:00
efi_disk.c efi_loader: rename parent to header 2018-12-02 21:59:36 +01:00
efi_file.c efi_loader: comments for efi_file_from_path() 2019-02-16 15:42:19 +01:00
efi_freestanding.c efi_loader: provide freestanding library 2019-02-13 09:40:06 +01:00
efi_gop.c efi_loader: fix typos 2018-12-02 21:59:37 +01:00
efi_hii_config.c efi_loader: debug output for HII protocols 2019-02-13 09:40:06 +01:00
efi_hii.c efi_loader: debug output for HII protocols 2019-02-13 09:40:06 +01:00
efi_image_loader.c efi_loader: refactor efi_setup_loaded_image() 2018-09-23 21:55:31 +02:00
efi_memory.c efi_loader: fix memory allocation on sandbox 2019-02-13 09:40:05 +01:00
efi_net.c efi_loader: fix simple network protocol 2018-12-02 21:59:37 +01:00
efi_root_node.c efi_loader: create root node 2018-09-23 21:55:31 +02:00
efi_runtime.c efi_loader: efi_add_runtime_mmio() 2019-02-13 09:40:05 +01:00
efi_setup.c efi_loader: move efi_init_obj_list() to a new efi_setup.c 2019-02-13 09:40:05 +01:00
efi_smbios.c sandbox: smbios: Update to support sandbox 2018-12-02 21:59:37 +01:00
efi_unicode_collation.c efi_loader: EFI_UNICODE_COLLATION_PROTOCOL 2018-09-23 21:55:29 +02:00
efi_variable.c efi_loader: fix GetNextVariableName 2019-02-13 09:40:06 +01:00
efi_watchdog.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
helloworld.c efi_loader: use library memcpy() in helloworld.efi 2019-02-13 09:40:06 +01:00
Kconfig efi_loader: Make HII a config option 2019-02-13 09:40:06 +01:00
Makefile efi: hii: add HII config routing/access protocols 2019-02-13 09:40:06 +01:00