efi_loader: CloseProtocol() requires valid agent handle
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 5 May 2019 08:37:51 +0000 (10:37 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 7 May 2019 19:10:04 +0000 (21:10 +0200)
commitec163faa1b7e0314ae5703c7c2203b1615e78c88
tree87ba2cbeaa7bc42fd7e2043aafcc876a43d4bc04
parent24f6be7ada05f24f18aec6651dd393e82136342a
efi_loader: CloseProtocol() requires valid agent handle

Return EFI_INVALID_PARAMETER from CloseProtcol() if the agent handle is not
valid.

Return EFI_INVALID_PARAMETER if the optional controller handle is not
valid.

Return immediately from efi_search_obj if the handle is NULL.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c