From 73bb3701a19a9eeb30b6f77ff7612ca2a9cd3f38 Mon Sep 17 00:00:00 2001 From: Oliver Wagner Date: Wed, 2 Sep 2015 14:21:59 -0400 Subject: [PATCH] efi: Change status check when draining keyboard PCs without keyboards may hang as they might return a status other than EFI_NOT_READY. Signed-off-by: Gene Cumm --- efi/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi/main.c b/efi/main.c index 6dbc259e..e07ee5c8 100644 --- a/efi/main.c +++ b/efi/main.c @@ -1381,7 +1381,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *table) in = ST->ConIn; do { status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key); - } while (status != EFI_NOT_READY); + } while (status == EFI_SUCCESS); if (!setjmp(load_error_buf)) load_env32(NULL); -- 2.11.4.GIT