]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix uninitialized variable bug in efi_set_load_options()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 27 Jul 2023 07:15:01 +0000 (10:15 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 28 Jul 2023 09:36:37 +0000 (11:36 +0200)
commita7eb8aeccb8a6a574c8c8bac22c8e61ec425fea1
tree0f4cabc6ae464ca26394a58931bb2b81040c1d33
parentf687c8f7b44624a058b1a3979acea7f37f301c74
efi_loader: fix uninitialized variable bug in efi_set_load_options()

Check for efi_search_protocol() failure before dereferencing "handler"
to avoid a crash.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
lib/efi_loader/efi_load_options.c