diff options
| author | Moritz Fischer <[email protected]> | 2024-10-30 21:17:48 +0000 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2024-10-31 06:05:39 +0100 |
| commit | 7596d77bc1b6be838e38af3fb4e73dbd0a0a078e (patch) | |
| tree | c486450d3a21ca449ff6d17f315e9e85a7c4711b /lib/efi_loader/efi_device_path.c | |
| parent | c8c10b83ef0a7a04ba40223c841f6f721d9a28a3 (diff) | |
lib: efi_loader: Fix efi_dp_from_mem() calls
The function expects an end address but is being called with
an size instead.
Fixes: 6422820ac3 ("efi_loader: split unrelated code from efi_bootmgr.c")
Reviewed-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
Reviewed-by: Patrick Wildt <[email protected]>
Diffstat (limited to 'lib/efi_loader/efi_device_path.c')
| -rw-r--r-- | lib/efi_loader/efi_device_path.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index 9de3b95d073..d7444588aa0 100644 --- a/lib/efi_loader/efi_device_path.c +++ b/lib/efi_loader/efi_device_path.c @@ -1073,7 +1073,8 @@ efi_status_t efi_dp_from_name(const char *dev, const char *devnr, efi_get_image_parameters(&image_addr, &image_size); dp = efi_dp_from_mem(EFI_RESERVED_MEMORY_TYPE, - (uintptr_t)image_addr, image_size); + (uintptr_t)image_addr, + (uintptr_t)image_addr + image_size); } else if (IS_ENABLED(CONFIG_NETDEVICES) && !strcmp(dev, "Net")) { dp = efi_dp_from_eth(); } else if (!strcmp(dev, "Uart")) { |
