From: Ilias Apalodimas Date: Fri, 11 Nov 2022 16:20:37 +0000 (+0200) Subject: efi_loader: add missing EFI_CALL when closing a file X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=64012e0c52eefa6fbfedbad772133a478bd741ea;p=u-boot.git 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 Reviewed-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c index b1495e58ee..d6dc8232a9 100644 --- a/lib/efi_loader/efi_file.c +++ b/lib/efi_loader/efi_file.c @@ -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; }