From 0fd16c31cf718ebf7885b9f81d015b91d7f5e8a8 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Mon, 4 Nov 2024 01:49:34 +0000 Subject: efi_loader: Change efi_dp_from_mem() to use size All call sites are using size rather than end addresses, so instead - as previously done - calculating an end address everywhere, just modify the function to use size and internally calculate the end address Cc: Heinrich Schuchardt Cc: Ilias Apalodimas Cc: Patrick Wildt Signed-off-by: Moritz Fischer Reviewed-by: Heinrich Schuchardt --- lib/efi_loader/efi_bootbin.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/efi_loader/efi_bootbin.c') diff --git a/lib/efi_loader/efi_bootbin.c b/lib/efi_loader/efi_bootbin.c index bf38392fac3..a87006b3c0e 100644 --- a/lib/efi_loader/efi_bootbin.c +++ b/lib/efi_loader/efi_bootbin.c @@ -137,7 +137,6 @@ efi_status_t efi_run_image(void *source_buffer, efi_uintn_t source_size) */ file_path = efi_dp_from_mem(EFI_RESERVED_MEMORY_TYPE, (uintptr_t)source_buffer, - (uintptr_t)source_buffer + source_size); /* * Make sure that device for device_path exist -- cgit v1.2.3