1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

efi_loader: check interface when uninstalling protocol

The interface has to be checked in UninstallProtocolInterface.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Heinrich Schuchardt
2018-05-11 12:09:21 +02:00
committed by Alexander Graf
parent 0d6ea050cc
commit 1f470e1790

View File

@@ -493,6 +493,8 @@ efi_status_t efi_remove_protocol(const efi_handle_t handle,
return ret;
if (guidcmp(handler->guid, protocol))
return EFI_INVALID_PARAMETER;
if (handler->protocol_interface != protocol_interface)
return EFI_INVALID_PARAMETER;
list_del(&handler->link);
free(handler);
return EFI_SUCCESS;