diff options
author | 2025-07-23 14:22:41 +0800 | |
---|---|---|
committer | 2025-08-04 14:28:04 +0200 | |
commit | 50a74d0095cd23d2012133e208df45a298868870 (patch) | |
tree | 6978f3fa0c1c25f7d0baff5afd8ccdb901dcc4ee /rust/pin-init/internal/src | |
parent | tee: fix NULL pointer dereference in tee_shm_put (diff) | |
download | wireguard-linux-50a74d0095cd23d2012133e208df45a298868870.tar.xz wireguard-linux-50a74d0095cd23d2012133e208df45a298868870.zip |
tee: fix memory leak in tee_dyn_shm_alloc_helper
When shm_register() fails in tee_dyn_shm_alloc_helper(), the pre-allocated
pages array is not freed, resulting in a memory leak.
Fixes: cf4441503e20 ("tee: optee: Move pool_op helper functions")
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions