u-boot/lib/efi_loader
Michal Suchanek c726fc01cf dm: treewide: Use uclass_first_device_err when accessing one device
There is a number of users that use uclass_first_device to access the
first and (assumed) only device in uclass.

Some check the return value of uclass_first_device and also that a
device was returned which is exactly what uclass_first_device_err does.

Some are not checking that a device was returned and can potentially
crash if no device exists in the uclass. Finally there is one that
returns NULL on error either way.

Convert all of these to use uclass_first_device_err instead, the return
value will be removed from uclass_first_device in a later patch.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-17 21:17:12 -06:00
..
.gitignore efi_loader: git ignore helloworld_efi.S 2020-01-07 18:08:20 +01:00
dtbdump.c efi_loader: move dtbdump.c, initrddump.c to lib/efi_loader 2022-03-20 17:01:00 +01:00
efi_acpi.c efi: Correct address handling with ACPI tables 2022-01-25 11:44:36 -07:00
efi_bootmgr.c bootmenu: add removable media entries 2022-09-14 08:43:32 +02:00
efi_boottime.c efi_loader: internal CloseProtocol 2022-10-10 16:34:25 +02:00
efi_capsule.c efi_loader: CloseProtocol in efi_fmp_find 2022-10-10 16:34:25 +02:00
efi_conformance.c efi: ECPT add EBBRv2.0 conformance profile 2022-09-03 10:13:26 +02:00
efi_console.c efi_loader: avoid EFI_CALL() when draining console 2022-10-16 12:23:22 +02:00
efi_device_path.c efi_loader: efi_dp_part_node check dp_alloc return value 2022-10-06 22:54:57 +02:00
efi_device_path_to_text.c efi_loader: fix display of NVMe EUI-64 2022-09-03 10:49:17 +02:00
efi_device_path_utilities.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
efi_disk.c efi_loader: reformat efi_disk_add_dev() 2022-10-10 16:34:26 +02:00
efi_dt_fixup.c treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
efi_esrt.c efi_loader: use %pUs for printing GUIDs 2022-01-19 16:16:33 +01:00
efi_file.c eficonfig: menu-driven addition of UEFI boot option 2022-09-14 08:43:31 +02:00
efi_firmware.c EFI: FMP: Use a common GetImageInfo function for FIT and raw images 2022-06-12 09:17:54 +02:00
efi_freestanding.c efi_loader: correct function comment style 2022-01-29 10:23:40 +01:00
efi_gop.c dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
efi_helper.c efi_loader: function to unlink udevice and handle 2022-10-06 22:54:57 +02:00
efi_hii.c efi_loader: EFI_HII_STRING_PROTOCOL.GetString() 2022-04-15 11:26:21 +02:00
efi_hii_config.c efi_loader: use %pUs for printing GUIDs 2022-01-19 16:16:33 +01:00
efi_image_loader.c efi_loader: image_loader: add a missing digest verification for signed PE image 2022-07-05 14:37:16 +02:00
efi_load_initrd.c efi_loader: remove efi_delete_handle on loadfile2 2022-10-16 12:23:22 +02:00
efi_load_options.c efi_loader: simplify efi_set_load_options() 2022-10-10 16:34:26 +02:00
efi_memory.c efi_loader: simplify efi_add_conventional_memory_map() 2022-04-29 14:25:39 +02:00
efi_net.c efi_loader: fix use after free in receive path 2020-10-19 22:59:53 +02:00
efi_riscv.c efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support 2022-01-29 10:23:40 +01:00
efi_rng.c efi_loader: use %pUs for printing GUIDs 2022-01-19 16:16:33 +01:00
efi_root_node.c efi_loader: define internal implementations of install/uninstallmultiple 2022-10-06 22:54:58 +02:00
efi_runtime.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efi_setup.c efi_driver: move event registration to driver 2022-10-06 22:54:58 +02:00
efi_signature.c efi_loader: signature: export efi_hash_regions() 2022-07-05 14:37:16 +02:00
efi_smbios.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
efi_string.c efi: Add string conversion helper 2022-10-06 22:54:57 +02:00
efi_tcg2.c efi_loader: CloseProtocol in tcg2_measure_gpt_data 2022-10-10 16:34:25 +02:00
efi_unicode_collation.c efi_loader: carve out utf_to_cp() 2021-03-07 17:37:13 +01:00
efi_var_common.c efi: Use 16-bit unicode strings 2022-02-03 12:16:01 -05:00
efi_var_file.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
efi_var_mem.c efi_loader: treat UEFI variable name as const 2021-10-25 21:13:06 +02:00
efi_var_seed.S efi_loader: pre-seed UEFI variables 2020-07-16 12:37:02 +02:00
efi_variable.c efi: Use 16-bit unicode strings 2022-02-03 12:16:01 -05:00
efi_variable_tee.c efi_loader: Set variable attributes when EFI_BUFFER_TOO_SMALL is returned 2022-03-20 11:03:06 +01:00
efi_watchdog.c efi_loader: update the timing of enabling and disabling EFI watchdog 2022-02-26 07:37:01 +01:00
helloworld.c efi_loader: printing UEFI revision in helloworld.efi 2022-09-03 08:16:09 +02:00
initrddump.c efi_loader: initrddump: drain input before prompt 2022-03-26 07:46:21 +01:00
Kconfig Merge branch 'master' into next 2022-09-19 16:07:12 -04:00
Makefile efi: Create ECPT table 2022-09-03 09:35:48 +02:00