Home
last modified time | relevance | path

Searched hist:"7 ae15736f2abd862deb894764d152ca2d5250f6d" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/tee/
H A Dtee_ree_fs.c7ae15736f2abd862deb894764d152ca2d5250f6d Tue Jun 18 13:35:20 UTC 2024 Jens Wiklander <jens.wiklander@linaro.org> core: ree_fs: fix dirfile handle refcount

The counter ree_fs_dirh_refcount is used to determine when ree_fs_dirh
should be free, not as a guarantee that ree_fs_dirh is still valid. This
wasn't the assumption in ree_fs_readdir_rpc(), ree_fs_closedir_rpc(),
and ree_fs_opendir_rpc(). So fix that by using get_dirh() in
ree_fs_readdir_rpc as needed.

Reported-by: Gavin Liu <gavin.liu@mediatek.com>
Closes: https://github.com/OP-TEE/optee_os/issues/6895
Fixes: ace6039fd434 ("core: REE_FS: refcount dirfile handle")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>