]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: add missing EFI_CALL when closing a file
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 11 Nov 2022 16:20:37 +0000 (18:20 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 16 Nov 2022 07:34:06 +0000 (08:34 +0100)
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>
lib/efi_loader/efi_file.c

index b1495e58ee06c69b090071d6f0290a50ace8e459..d6dc8232a9a059e9727cb3be77fa9813dcc77d77 100644 (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;
                }