]> git.ipfire.org Git - people/ms/u-boot.git/commit
efi_loader: catch misspelled bootefi subcommand
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 24 Jan 2018 19:33:54 +0000 (20:33 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 28 Jan 2018 20:37:13 +0000 (21:37 +0100)
commit49db1cb8c3a2cfaf3cd9d01b630382843e29c48d
treeb97154396318959a5416768da9d3d473b3a22235
parentc6fa5df6aab48b12803ea9634b7f7becdc90810d
efi_loader: catch misspelled bootefi subcommand

If 'bootefi hello' or 'bootefi selftest' can be executed depends on the
configuration.

If an invalid non-numeric 1st argument is passed to bootefi, e.g.
'bootefi hola', this string is converted to 0 and U-Boot jumps to
this typically invalid address.

With the patch the online help is shown instead.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c