Commit aacfa0ef authored by Jonathan Marek's avatar Jonathan Marek Committed by Ard Biesheuvel
Browse files

efi/libstub: fix efi_parse_options() ignoring the default command line



efi_convert_cmdline() always returns a size of at least 1 because it
counts the NUL terminator, so the "cmdline_size == 0" condition is never
satisfied.

Change it to check if the string starts with a NUL character to get the
intended behavior: to use CONFIG_CMDLINE when load_options_size == 0.

Fixes: 60f38de7 ("efi/libstub: Unify command line param parsing")
Signed-off-by: default avatarJonathan Marek <jonathan@marek.ca>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 8e929cb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment