Home
last modified time | relevance | path

Searched hist:"6 e1990d7d369b2a1339f8c7fa422326ae0722395" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/tee/
H A Dfs_htree.c6e1990d7d369b2a1339f8c7fa422326ae0722395 Mon Nov 03 04:00:00 UTC 2025 Ox Yeh <ox.yeh@mediatek.com> core: fs_htree: fix incorrect data type in create_and_sync

Fixes an incorrect data type used in the create_and_sync function.
When this function calls tee_fs_htree_sync_to_storage, it may invoke
tee_fs_htree_close to free the input hash tree in error cases.
Therefore, the input type should be struct tee_fs_htree **ht_arg
to handle these scenarios correctly.

Link: https://github.com/OP-TEE/optee_os/issues/7512
Fixes: 5a9d570a8d7f ("core: fs_htree: re-init hash tree when both tag and counter are zero")

Signed-off-by: Ox Yeh <ox.yeh@mediatek.com>
Reviewed-by: Menson Chen <menson.chen@mediatek.com>
Reviewed-by: Rayan Hu <rayan.hu@mediatek.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>