]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: error handling in efi_setup_loaded_image()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 6 Feb 2019 18:41:29 +0000 (19:41 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 16 Feb 2019 14:42:20 +0000 (15:42 +0100)
commit16112f9f4832761e6af6f5ddb74c77a107992cb7
tree7fa704b37f087dea601007ed43a8e97ffbf1f5f1
parentbc19681acfa411c48d7ab83679dbc3ef089901d6
efi_loader: error handling in efi_setup_loaded_image()

In case of an error we should set the returned pointers to NULL. This
ensures that an illegal free does not occur even if the caller calls
free() for the handles.

If protocols cannot be installed, release all resources.

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