Skip to content

Commit

Permalink
[BugFix]: Add ruturn value check for fs_unlink
Browse files Browse the repository at this point in the history
[Desc]:
1. check_storage_available should check fs_unlink's return value;
2. ta_storage_cmd_unlink should't always return TEE_SUCCESS;

Signed-off-by: pengyinjie <[email protected]>
  • Loading branch information
XMPengYinjie committed May 14, 2024
1 parent 54263d9 commit a26fbfa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ta/storage/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ TEE_Result ta_storage_cmd_unlink(uint32_t param_types, TEE_Param params[4])
(TEE_PARAM_TYPE_VALUE_INPUT, TEE_PARAM_TYPE_NONE,
TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE));

res = TEE_CloseAndDeletePersistentObject1(o);

return res;
return TEE_CloseAndDeletePersistentObject1(o);
}

TEE_Result ta_storage_cmd_rename(uint32_t command, uint32_t param_types,
Expand Down

0 comments on commit a26fbfa

Please sign in to comment.