diff options
| author | Andrew Goodbody <[email protected]> | 2025-07-02 11:01:37 +0100 |
|---|---|---|
| committer | Ilias Apalodimas <[email protected]> | 2025-07-03 11:32:49 +0300 |
| commit | 5753dc3f6572d42057a262f0e57e904e5c9cd9bc (patch) | |
| tree | 032f03159cb7d2821e09f5a7fb14a33fb68da583 /include | |
| parent | 9d95a35715fcb8e81ee423e31273489a47ed1563 (diff) | |
efi_loader: Prevent dereference of uninitialised variable
If phandler is returned as NULL from efi_search_protocol then
protocol_interface is never assigned to. Instead return
EFI_UNSUPPORTED as per the spec.
This issue found by Smatch.
Also eliminate the use of the variable protocol_interface as it is not
needed.
Signed-off-by: Andrew Goodbody <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
