projects
/
platform
/
core
/
security
/
trusted
/
key-manager-ta.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca30df6
)
Add error code for failure of TEE_Malloc()
03/297403/3
author
Dongsun Lee
<ds73.lee@samsung.com>
Fri, 18 Aug 2023 01:54:57 +0000
(10:54 +0900)
committer
Dong Sun Lee
<ds73.lee@samsung.com>
Mon, 4 Sep 2023 23:44:24 +0000
(23:44 +0000)
Change-Id: Ica928573a91d95333394b02c6d896f9badde458c
ta/src/cmd_exec.c
patch
|
blob
|
history
diff --git
a/ta/src/cmd_exec.c
b/ta/src/cmd_exec.c
index 806588f846e08deee90229d0f181c97a6936a934..5f96f85da7e9222c93df9074cd5d49b04462f790 100644
(file)
--- a/
ta/src/cmd_exec.c
+++ b/
ta/src/cmd_exec.c
@@
-2504,6
+2504,7
@@
TEE_Result KM_ExecCmdSaveData(TEE_Param param[4])
tmp = TEE_Malloc(dataToSave.data_size, 0);
if (!tmp) {
LOG("Allocating memory has failed.");
+ ret = TEE_ERROR_OUT_OF_MEMORY;
goto clean;
}
memcpy(tmp, dataToSave.data, dataToSave.data_size);