]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Call Exit() on return from payload in StartImage()
authorAlexander Graf <agraf@suse.de>
Thu, 25 Jan 2018 23:47:53 +0000 (00:47 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 28 Jan 2018 20:37:13 +0000 (21:37 +0100)
commit56672bf52ebf7b9d6de245f7a1bf56679a39093b
tree51e298424c096ea91c980baa526d77d19c580ed9
parentc8df80c514908c0370cdaa715a1727532b8f3f6c
efi_loader: Call Exit() on return from payload in StartImage()

When a UEFI payload just returns instead of calling the Exit() callback,
we handle that in efi_do_enter() and call Exit on its behalf, so that
the loaded_image->exit_status value is correct.

We were missing that logic in StartImage(). Call it there too.

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