mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi_loader: error code in UninstallProtocolInterface()
According to the UEFI specification UninstallProtocolInteface() has to return EFI_NOT_FOUND if the interface is not found. Correct the return value. Cf. UEFI SCT II spec (2017), 3.3.2 UninstallProtocolInterface(), 5.1.3.2.4 Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
61c63db7fe
commit
96aa99cded
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ efi_status_t efi_remove_protocol(const efi_handle_t handle,
|
|||
if (ret != EFI_SUCCESS)
|
||||
return ret;
|
||||
if (handler->protocol_interface != protocol_interface)
|
||||
return EFI_INVALID_PARAMETER;
|
||||
return EFI_NOT_FOUND;
|
||||
list_del(&handler->link);
|
||||
free(handler);
|
||||
return EFI_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue