]> git.baikalelectronics.ru Git - uboot.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)
commit27bc4c6ae41d456e9bd22cc88722b8229be2aaec
tree7fa704b37f087dea601007ed43a8e97ffbf1f5f1
parentda41b69d16ea13ddec8382a72ec32693bf64ad6f
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