]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: correct check in efi_load_option_dp_join()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 24 Jul 2024 13:26:04 +0000 (15:26 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 31 Jul 2024 06:29:58 +0000 (08:29 +0200)
commit48940c6429c3f77c04b1844e0cfed2f884bf045b
tree81667d6659beeca806facdc0ae20e0f7e227d6c0
parent93767c5a8f7b1a6d22eb551e3b98f22eebe54d64
efi_loader: correct check in efi_load_option_dp_join()

After assigning to *dp we must check this value and not dp.

Addresses-Coverity-ID: 501792 Control flow issues (DEADCODE)
Fixes: 58bef195f94e ("cmd: eficonfig: add support for setting fdt")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_helper.c