]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tee: optee: define TEE error code TEE_ERROR_SHORT_BUFFER
authorEtienne Carriere <etienne.carriere@linaro.org>
Tue, 9 Nov 2021 16:08:22 +0000 (17:08 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 23 Nov 2021 18:53:03 +0000 (13:53 -0500)
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>
include/tee.h

index 30ea2ee164e15822fa65c9af670d58425030f113..50051496ae506b572afe55ed05c72401e2cbcce2 100644 (file)
@@ -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