commit | 9748d2a9dcf60afd30331d503d8eb99d61ef9235 | [log] [tgz] |
---|---|---|
author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | Thu Nov 16 20:30:00 2023 +0900 |
committer | Jérôme Forissier <jerome@forissier.org> | Mon Nov 20 18:52:12 2023 +0100 |
tree | d4828818f36e278b39d155a96196c9a7c4e49156 | |
parent | 4e5d6c0991e29374455faf643436b843a33f0cb1 [diff] |
ta: os_test: do not call TEE_CloseTASession() if session is not opened The Global Platform specification [1] tells us that the session parameter of TEE_CloseTASession() is: An opened session handle The behaviour is unspecified if the session handle is not opened. Make sure not to call TEE_CloseTASession() with an invalid session handle when TEE_OpenTASession() fails by either: - doing an early return - adding an additional cleanup label [1] TEE Internal Core API Specification – Public Release v1.3.1, §4.9.2 "TEE_CloseTASession" Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the test suite (xtest) used to test the OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.
// OP-TEE core maintainers