summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_memory.c
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-07-02 11:01:37 +0100
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2025-07-03 11:32:49 +0300
commit5753dc3f6572d42057a262f0e57e904e5c9cd9bc (patch)
tree032f03159cb7d2821e09f5a7fb14a33fb68da583 /lib/efi_loader/efi_memory.c
parent9d95a35715fcb8e81ee423e31273489a47ed1563 (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 <andrew.goodbody@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/efi_loader/efi_memory.c')
0 files changed, 0 insertions, 0 deletions