diff options
author | Tom Rini <trini@konsulko.com> | 2022-09-30 08:30:38 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-30 08:30:38 -0400 |
commit | d3ccdc0fce206c1d54fbdc607333de6184e19e75 (patch) | |
tree | 4ce9e21a83d29de50ca967775aec6cb2e9eca3e1 /lib/efi_loader/efi_load_initrd.c | |
parent | 97c0a9c5708dc60d82cad721a8b882f0ce37e83d (diff) | |
parent | 8d805929b1541a071048b55b22d110f166809939 (diff) |
Merge tag 'efi-2022-10-rc6' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-10-rc6
Documentation:
* doc: improve description of autostart
UEFI:
* prefix test functions with efi_st_ in the LoadImage unit test
* avoid a warning message in efi_initrd_deregister()
Diffstat (limited to 'lib/efi_loader/efi_load_initrd.c')
-rw-r--r-- | lib/efi_loader/efi_load_initrd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_load_initrd.c b/lib/efi_loader/efi_load_initrd.c index c5e6652e664..3d6044f7604 100644 --- a/lib/efi_loader/efi_load_initrd.c +++ b/lib/efi_loader/efi_load_initrd.c @@ -230,6 +230,9 @@ efi_status_t efi_initrd_register(void) */ void efi_initrd_deregister(void) { + if (!efi_initrd_handle) + return; + efi_delete_handle(efi_initrd_handle); efi_initrd_handle = NULL; } |