diff options
| author | Toomas Soome <tsoome@me.com> | 2018-07-09 13:45:55 +0300 |
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2018-08-28 18:53:02 +0000 |
| commit | 522e4551ca5d7b72fe4d4af1ff92521ab19842c7 (patch) | |
| tree | 649f487993baa6e30a5760016f8589ef0c490842 | |
| parent | 69aea4bf4584b2d60ef94da59897ec363890af57 (diff) | |
| download | illumos-joyent-522e4551ca5d7b72fe4d4af1ff92521ab19842c7.tar.gz | |
9764 loader.efi: 'efi_mmap' is used uninitialized
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Alexander Pyhalov <apyhalov@gmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>
| -rw-r--r-- | usr/src/boot/sys/boot/efi/loader/memmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/memmap.c b/usr/src/boot/sys/boot/efi/loader/memmap.c index 50834ab44e..9862e51b5a 100644 --- a/usr/src/boot/sys/boot/efi/loader/memmap.c +++ b/usr/src/boot/sys/boot/efi/loader/memmap.c @@ -81,6 +81,7 @@ efi_getsmap(void) int type = -1; size = 0; + efi_mmap = NULL; status = BS->GetMemoryMap(&size, efi_mmap, &key, &desc_size, NULL); efi_mmap = malloc(size); status = BS->GetMemoryMap(&size, efi_mmap, &key, &desc_size, NULL); |
