summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/boot/sys/boot/efi/loader/comconsole.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/comconsole.c b/usr/src/boot/sys/boot/efi/loader/comconsole.c
index 6104f4be69..57168cca17 100644
--- a/usr/src/boot/sys/boot/efi/loader/comconsole.c
+++ b/usr/src/boot/sys/boot/efi/loader/comconsole.c
@@ -124,6 +124,7 @@ efi_serial_init(EFI_HANDLE **handlep, int *nhandles)
* get buffer size
*/
*nhandles = 0;
+ handles = NULL;
status = BS->LocateHandle(ByProtocol, &serial, NULL, &bufsz, handles);
if (status != EFI_BUFFER_TOO_SMALL)
return (status);