summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-27 12:36:21 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-28 09:25:38 +0100
commit10a6e01eaa9e340c4edafa771c001986bdcdcfc6 (patch)
tree549e236e8c2c61baec61397262175da8e3c6d6be /src
parentbceda88b5234a6d2ce53073918bc5ee4ac7a869f (diff)
downloadsystemd-10a6e01eaa9e340c4edafa771c001986bdcdcfc6.tar.gz
boot/shim: fix char ** vs char * mismatch
This code cannot have ever worked ;( Found by coverity, obvious when the type is not obfuscated to void*.
Diffstat (limited to 'src')
-rw-r--r--src/boot/efi/shim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/efi/shim.c b/src/boot/efi/shim.c
index 6da9ee889f..d66b39be23 100644
--- a/src/boot/efi/shim.c
+++ b/src/boot/efi/shim.c
@@ -162,7 +162,7 @@ static EFIAPI EFI_STATUS security_policy_authentication (const EFI_SECURITY_PROT
EFI_DEVICE_PATH *dev_path;
EFI_HANDLE h;
EFI_FILE *root;
- VOID *file_buffer = NULL;
+ CHAR8 *file_buffer = NULL;
UINTN file_size;
CHAR16 *dev_path_str;
@@ -182,7 +182,7 @@ static EFIAPI EFI_STATUS security_policy_authentication (const EFI_SECURITY_PROT
dev_path_str = DevicePathToStr(dev_path);
FreePool(dev_path);
- file_size = file_read(root, dev_path_str, 0, 0, file_buffer);
+ file_size = file_read(root, dev_path_str, 0, 0, &file_buffer);
FreePool(dev_path_str);
uefi_call_wrapper(root->Close, 1, root);