aboutsummaryrefslogtreecommitdiffstats
path: root/efi/vesa.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-11-15 10:18:49 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-11-15 10:18:49 +0000
commitbd7ce1bbf3393be32ee63a5139fffd1aae11c7fd (patch)
treeac54b1e05902c3bdbe3368d8bb9e937bf1853def /efi/vesa.c
parent023cbfcba3a526e5d906616f373e278821e45b1e (diff)
downloadsyslinux-bd7ce1bbf3393be32ee63a5139fffd1aae11c7fd.tar.gz
syslinux-bd7ce1bbf3393be32ee63a5139fffd1aae11c7fd.tar.xz
syslinux-bd7ce1bbf3393be32ee63a5139fffd1aae11c7fd.zip
efi: Consume unprocessed user input before loading ldlinux.c32
Consume and discard any pending user input that is received before we load ldlinux.c32 and present the user with a "boot:" prompt. This bug was discovered after commit 7cb503fd746b ("ldlinux: get_key() requires raw access to user input") because user input was previously handled with __stdcon_read() which would discard any incoming newline characters. It turns out that if syslinux.efi is invoked from the EFI shell the shell doesn't process the last newline character generated when the user hits the return key and __raw_read() was returning this as valid input. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'efi/vesa.c')
0 files changed, 0 insertions, 0 deletions