From d2df75e755ab7973e38d93f9937214d0062c20e0 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 9 Jul 2018 13:36:00 +0300 Subject: [PATCH] 9771 loader.efi: 'handles' is used uninitialized in comconsole.c Reviewed by: Andy Stormont Reviewed by: Igor Kozhukhov Approved by: Dan McDonald --- usr/src/boot/sys/boot/efi/loader/comconsole.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.4.GIT