efi_loader: add missing EFI_CALL when closing a file

Closing the files uses the EFI protocol and specifically it's .close
callback.  This needs to be wrapped on an EFI_CALL()

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
Ilias Apalodimas 2022-11-11 18:20:37 +02:00 committed by Heinrich Schuchardt
parent 94a574d8f6
commit 64012e0c52

View File

@ -1140,7 +1140,7 @@ struct efi_file_handle *efi_file_from_path(struct efi_device_path *fp)
if (!EFI_DP_TYPE(fp, MEDIA_DEVICE, FILE_PATH)) {
printf("bad file path!\n");
f->close(f);
EFI_CALL(f->close(f));
return NULL;
}