]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: error handling in efi_load_image()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 4 Dec 2017 17:03:03 +0000 (18:03 +0100)
committerAlexander Graf <agraf@suse.de>
Sat, 16 Dec 2017 22:07:55 +0000 (23:07 +0100)
commitb9b17598f42c29b905a8b4a778e505244a89bd9a
treed5d71962095495dca55de0c5bcd5cfdcb4ccae54
parent678e03a00cafc9009f05cbcc3192235f2b8f9a33
efi_loader: error handling in efi_load_image()

If a failure occurs when trying to load an image, it is insufficient
to free() the EFI object. We must remove it from the object list,
too. Otherwise a use after free will occur the next time we
iterate over the object list.

Furthermore errors in setting up the image should be handled.

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