diff options
| author | Heinrich Schuchardt <[email protected]> | 2022-10-07 15:29:52 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2022-10-10 16:34:25 +0200 |
| commit | 56c9f0c44e00f482ed0127123a68b43bf8d96aba (patch) | |
| tree | fc7149d22c0f091a5c6a0f231fa749a9abf44843 /include | |
| parent | bb8bb3033e2a20e708884e4b6ba61e5326c1fa0f (diff) | |
efi_loader: CloseProtocol in efi_fmp_find
The CloseProtocol() boot service requires a handle as first argument.
Passing the protocol interface is incorrect.
CloseProtocol() only has an effect if called with a non-zero value for
agent_handle. HandleProtocol() uses an opaque agent_handle when invoking
OpenProtocol() (currently NULL). Therefore HandleProtocol() should be
avoided.
* Replace the LocateHandle() call by efi_search_protocol().
* Remove the CloseProtocol() call.
Fixes: 8d99026f0697 ("efi_loader: capsule: support firmware update")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
