loader/efi: fix handling of serial devices.

Fixes a regression introduced in hrev55297, fixes #17670.

Change-Id: Icc157e093b8fa3f5e0c2a59ab84c81b780933d46
This commit is contained in:
Jessica Hamilton 2022-06-09 02:46:38 +00:00
parent f386770953
commit 6a9406a172

View File

@ -86,7 +86,7 @@ serial_putc(char ch)
extern "C" void
serial_puts(const char* string, size_t size)
{
if (!sSerialEnabled)
if (!sSerialEnabled || (sSerial == NULL && sSerialUsesEFI))
return;
while (size-- != 0) {