summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/libefi/efipart.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/efi/libefi/efipart.c')
-rw-r--r--sys/boot/efi/libefi/efipart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/efi/libefi/efipart.c b/sys/boot/efi/libefi/efipart.c
index 4c8c170..4abac06 100644
--- a/sys/boot/efi/libefi/efipart.c
+++ b/sys/boot/efi/libefi/efipart.c
@@ -69,6 +69,7 @@ efipart_init(void)
int err;
sz = 0;
+ hin = NULL;
status = BS->LocateHandle(ByProtocol, &blkio_guid, 0, &sz, 0);
if (status == EFI_BUFFER_TOO_SMALL) {
hin = (EFI_HANDLE *)malloc(sz * 2);
OpenPOWER on IntegriCloud