mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi_loader: correct signature of GetPosition, SetPosition
The UEFI spec requires that file positions are passed as u64 in
GetPosition() and SetPosition().
Check if the file handle points to a directory in GetPosition().
Provide a unit test for GetPosition() and SetPosition().
Fix Coverity warning CID 184079 (CONSTANT_EXPRESSION_RESULT).
Add comments.
Fixes: b6dd577737
("efi_loader: use correct types in EFI_FILE_PROTOCOL")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
3ce7829792
commit
0801d4d2fb
3 changed files with 61 additions and 12 deletions
|
@ -914,9 +914,9 @@ struct efi_file_handle {
|
|||
efi_status_t (EFIAPI *write)(struct efi_file_handle *file,
|
||||
efi_uintn_t *buffer_size, void *buffer);
|
||||
efi_status_t (EFIAPI *getpos)(struct efi_file_handle *file,
|
||||
efi_uintn_t *pos);
|
||||
u64 *pos);
|
||||
efi_status_t (EFIAPI *setpos)(struct efi_file_handle *file,
|
||||
efi_uintn_t pos);
|
||||
u64 pos);
|
||||
efi_status_t (EFIAPI *getinfo)(struct efi_file_handle *file,
|
||||
const efi_guid_t *info_type, efi_uintn_t *buffer_size,
|
||||
void *buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue