projects
/
platform
/
core
/
security
/
tef-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c072866
)
Return error TEEC_ERROR_OUT_OF_MEMORY if requested size too large
74/167274/1
author
Krzysztof Dynowski
<k.dynowski@samsung.com>
Tue, 16 Jan 2018 14:02:25 +0000
(15:02 +0100)
committer
Krzysztof Dynowski
<k.dynowski@samsung.com>
Tue, 16 Jan 2018 14:02:25 +0000
(15:02 +0100)
Change-Id: Ia1f87109c2a1444f7491489b84e0d2633c07b61e
TEECLib/src/teec_api.c
patch
|
blob
|
history
diff --git
a/TEECLib/src/teec_api.c
b/TEECLib/src/teec_api.c
index 813f46d513134666a616212752371db7e89aaa81..cb77a745ec7b20daa8ff6726e3ba1e4b39c9a4bc 100644
(file)
--- a/
TEECLib/src/teec_api.c
+++ b/
TEECLib/src/teec_api.c
@@
-907,7
+907,7
@@
TEEC_Result TEEC_AllocateSharedMemory(TEEC_Context *context,
*/
if (sharedMem->size > TEEC_CONFIG_SHAREDMEM_MAX_SIZE) {
LOGE(TEEC_LIB, "Shared Memory size is too large 0x%x", sharedMem->size);
- return TEEC_ERROR_
BAD_PARAMETERS
;
+ return TEEC_ERROR_
OUT_OF_MEMORY
;
}
// Check if the Shared memory flags are valid