diff options
| author | Moritz Fischer <[email protected]> | 2024-11-04 01:49:34 +0000 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2024-11-09 09:56:45 +0100 |
| commit | 0fd16c31cf718ebf7885b9f81d015b91d7f5e8a8 (patch) | |
| tree | 8cf661ea88374da1652467a135fe943358a0ebc4 /include | |
| parent | ac425307f7cf23345f1c33759fbf34662c112276 (diff) | |
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 <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Patrick Wildt <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/efi_loader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 291eca5c077..39809eac1bc 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -858,7 +858,7 @@ struct efi_device_path *efi_dp_from_file(const struct efi_device_path *dp, struct efi_device_path *efi_dp_from_eth(void); struct efi_device_path *efi_dp_from_mem(uint32_t mem_type, uint64_t start_address, - uint64_t end_address); + size_t size); /* Determine the last device path node that is not the end node. */ const struct efi_device_path *efi_dp_last_node( const struct efi_device_path *dp); |
