summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2020-07-22 10:32:22 +0300
committerHeinrich Schuchardt <[email protected]>2020-07-22 12:32:41 +0200
commit9b87d4429c145ebb66895c7e053e8d53192180e2 (patch)
treeb82eced997bba62e83810b80b776bb7501e67f2b /scripts
parent5d1f79ba438dc372c9bddb729d630abbc6e1068b (diff)
efi_loader: Check for the native OP-TEE result on mm_communicate calls
Currently we only check for the return value of tee_invoke_func(). Although OP-TEE and StMM will correctly set param[1].u.value.a and we'll eventually return an error, the correct thing to do is check for the OP_TEE return code as well. So let's check for that and move tee_shm_free() and tee_close_session() before exiting with an error to make sure we always clear the registered memory. Fixes: f042e47e8fb43 ("efi_loader: Implement EFI variable handling via OP-TEE") Signed-off-by: Ilias Apalodimas <[email protected]> Use EFI_DEVICE_ERROR for TEE communication problems. Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions