diff options
author | Ilias Apalodimas | 2022-11-11 18:20:37 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2022-11-16 08:34:06 +0100 |
commit | 64012e0c52eefa6fbfedbad772133a478bd741ea (patch) | |
tree | 4f3621f6f45846087a1a61833f271e21eede30d7 /lib/efi_loader | |
parent | 94a574d8f6116a12def77fbf9a92f02a430a1d12 (diff) |
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>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c index b1495e58ee0..d6dc8232a9a 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; } |