boot: Properly check status code of console_key_read
authorJan Janssen <medhefgo@web.de>
Mon, 21 Feb 2022 11:52:30 +0000 (12:52 +0100)
committerJan Janssen <medhefgo@web.de>
Tue, 22 Feb 2022 15:34:52 +0000 (16:34 +0100)
commit1cb5d7857b205023a0473ec13df154ae2e254066
treea7c39ebadf6bebe5a127b5eba0bb0404a77fc899
parentc972880640ee19e89ce9265d8eae1b3aae190332
boot: Properly check status code of console_key_read

In some cases there was a unlikely possibility that we would look
at an uninitialized key value.
Also, returning in case of unexpected input error cases should prevent
infinite looping.
src/boot/efi/boot.c