]> git.sur5r.net Git - u-boot/commit
efi_loader: Fix return value for efi_add_runtime_mmio
authorAlexander Graf <agraf@suse.de>
Thu, 15 Mar 2018 14:08:16 +0000 (15:08 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:09:06 +0000 (11:09 +0200)
commit813468cdbd7287f0b2e38f9702aa3eee37b1c5b5
tree9376987fe5b8ecc3cc90105ae64e4a8a8e82452f
parent8e475064097d182191129e31846c585421f0f85a
efi_loader: Fix return value for efi_add_runtime_mmio

The efi_add_runtime_mmio function incorrectly returned the added
address as return value rather than EFI_SUCCESS. Fix it by checking
the return value of efi_add_memory_map properly.

Fixes: f057cfef5dc ("efi_loader: exit status for efi_reset_system_init")
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_runtime.c