diff mbox series

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

Message ID 20211104141451.29967-3-etienne.carriere@linaro.org
State Superseded
Headers show
Series [1/5] tee: define session login identifiers | expand

Commit Message

Etienne Carriere Nov. 4, 2021, 2:14 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>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
---
 include/tee.h | 1 +
 1 file changed, 1 insertion(+)

-- 
2.17.1

Comments

Patrick Delaunay Nov. 8, 2021, 9:32 a.m. UTC | #1
Hi,

On 11/4/21 3:14 PM, Etienne Carriere wrote:
> 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>
> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
> ---
>   include/tee.h | 1 +
>   1 file changed, 1 insertion(+)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick
Jens Wiklander Nov. 9, 2021, 8:45 a.m. UTC | #2
On Thu, Nov 4, 2021 at 3:15 PM Etienne Carriere
<etienne.carriere@linaro.org> wrote:
>
> 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>
> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
> ---
>  include/tee.h | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

Thanks,
Jens
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