summaryrefslogtreecommitdiff
path: root/core/tee
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2020-08-18 15:51:59 +0200
committerJérôme Forissier <jerome@forissier.org>2020-09-29 12:48:24 +0200
commit6c276b0808defbab0d468658a7b673e718439e95 (patch)
tree7cfc374e3b614d9f7be68a77ee071aa1e78bd621 /core/tee
parent338b123ee66ca6694372564000226549c99806b1 (diff)
core: tee_obj_get() return TEE_ERROR_BAD_STATE
Updates tee_obj_get() to return TEE_ERROR_BAD_STATE when an object reference can't be found. This will allow the GP TA API to panic the caller as required in the GP spec [1]. [1] GlobalPlatform TEE Internal Core API Specification v1.1 Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/tee')
-rw-r--r--core/tee/tee_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tee/tee_obj.c b/core/tee/tee_obj.c
index 64d3df36..510551f4 100644
--- a/core/tee/tee_obj.c
+++ b/core/tee/tee_obj.c
@@ -30,7 +30,7 @@ TEE_Result tee_obj_get(struct user_ta_ctx *utc, uint32_t obj_id,
return TEE_SUCCESS;
}
}
- return TEE_ERROR_BAD_PARAMETERS;
+ return TEE_ERROR_BAD_STATE;
}
void tee_obj_close(struct user_ta_ctx *utc, struct tee_obj *o)