diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-03-04 20:00:21 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-05 16:28:06 +0100 |
commit | 1c18863354dcc7eff36a8ad6ca5b64390c7cdadb (patch) | |
tree | 75bad503bc87c1a226601dc541b6d53cd3420758 | |
parent | e0e30f6362429f2e4510f90f7a677d797aa6087b (diff) | |
download | barebox-1c18863354dc.tar.gz barebox-1c18863354dc.tar.xz |
efi: payload: don't require efi_loaded_image->parent_handle for bootsource detection
This fixes bootsource detection running barebox as EFI payload under
EDK2 2020.11.
Fixes: 443eb41376d9 ("efi: add bootsource detection")
Cc: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240304190038.3486881-97-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/efi/efi-device.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c index 3a16deab5f..857f1b8c09 100644 --- a/drivers/efi/efi-device.c +++ b/drivers/efi/efi-device.c @@ -404,9 +404,6 @@ static void efi_set_bootsource(void) efi_handle_t efi_parent; - if (!efi_loaded_image->parent_handle) - goto out; - efi_parent = efi_find_parent(efi_loaded_image->device_handle); if (!efi_parent) |