efi_loader: initialize return values in efi_uninstall_multiple_protocol_interfaces_int()
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 10 Nov 2022 08:21:24 +0000 (10:21 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 16 Nov 2022 07:34:06 +0000 (08:34 +0100)
commit9fb3269ab39d3b3b1db43296b5d2619238eaa8b0
tree4719bb11fa11a88c3c95527de505653d0f60a5c9
parent2b94359e9c489061b66cc7dcefddbb6adb5ba9f8
efi_loader: initialize return values in efi_uninstall_multiple_protocol_interfaces_int()

If the va_list we got handed over contains no protocols we must return
EFI_SUCCESS.  However in that case the current code just returns
an unintialized value.
Fix that by setting the return value in the variable definition

Addresses-Coverity: CID 376195:  ("Uninitialized variables  (UNINIT)")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_boottime.c