diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-10 20:06:48 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-12 20:54:22 +0200 |
commit | 96aa99cded0096bd6c6ea2919e6884c54c80f095 (patch) | |
tree | 3ad1ac262f6ef203e2919a2a4817b377017227f6 /lib/efi_loader/efi_boottime.c | |
parent | 61c63db7fe8af569229cb598b018c65f9ad9c95f (diff) |
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>
Diffstat (limited to 'lib/efi_loader/efi_boottime.c')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index b8589b9531..b583ac6a42 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -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; |