commit | b9b17598f42c29b905a8b4a778e505244a89bd9a | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Mon Dec 04 18:03:03 2017 +0100 |
committer | Alexander Graf <agraf@suse.de> | Sat Dec 16 23:07:55 2017 +0100 |
tree | d5d71962095495dca55de0c5bcd5cfdcb4ccae54 | |
parent | 678e03a00cafc9009f05cbcc3192235f2b8f9a33 [diff] |
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>