diff mbox series

[v2,3/5] tee: optee: define TEE error code TEE_ERROR_SHORT_BUFFER

Message ID 20211109160824.18268-3-etienne.carriere@linaro.org
State Accepted
Commit 1442e9f33070c962e91eafdc4b591331b17b5588
Headers show
Series [v2,1/5] tee: define session login identifiers | expand

Commit Message

Etienne Carriere Nov. 9, 2021, 4:08 p.m. UTC
Adds TEE_ERROR_SHORT_BUFFER as TEE error code. This error code is
commonly used by TEEs to inform caller that the buffer(s) it provided
is too small for the desired operation.

Cc: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
---
Changes since v1:
 - Apply review tags
---
 include/tee.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/include/tee.h b/include/tee.h
index 30ea2ee164..50051496ae 100644
--- a/include/tee.h
+++ b/include/tee.h
@@ -64,6 +64,7 @@ 
 #define TEE_ERROR_NOT_SUPPORTED		0xffff000a
 #define TEE_ERROR_COMMUNICATION		0xffff000e
 #define TEE_ERROR_SECURITY		0xffff000f
+#define TEE_ERROR_SHORT_BUFFER		0xffff0010
 #define TEE_ERROR_OUT_OF_MEMORY		0xffff000c
 #define TEE_ERROR_OVERFLOW              0xffff300f
 #define TEE_ERROR_TARGET_DEAD		0xffff3024