Skip to content

Commit

Permalink
efi: Change status check when draining keyboard
Browse files Browse the repository at this point in the history
PCs without keyboards may hang as they might return a status other than
 EFI_NOT_READY.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  • Loading branch information
owagner authored and geneC committed Sep 2, 2015
1 parent d70168d commit 73bb370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efi/main.c
Expand Up @@ -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);
Expand Down

0 comments on commit 73bb370

Please sign in to comment.