]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: optee_rpmb: close tee session
authorIgor Opaniuk <igor.opaniuk@gmail.com>
Thu, 4 Apr 2024 13:19:48 +0000 (15:19 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 18 Apr 2024 13:04:48 +0000 (16:04 +0300)
commitfbdaafbb80506bc931d3940396cb86d257703de1
treebefbb72ccc144cb56558dd71ae5fb0d2146fbfc0
parent6e8bb1fb0ae81ff02e1057d47bcb08ca2d84d27b
cmd: optee_rpmb: close tee session

Close tee session after each optee_rpmb invocation, as there is no
reason to keep it open, considering the absence of any available mechanism
to clean up all open sessions automatically before handing over control
to the Linux kernel. Without proper clean-up we might end up with orphaned
sessions registered in OP-TEE OS core (obvious resource leak).

Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
cmd/optee_rpmb.c