Commit 50a74d00 authored by Pei Xiao's avatar Pei Xiao Committed by Jens Wiklander
Browse files

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: cf444150 ("tee: optee: Move pool_op helper functions")
Signed-off-by: default avatarPei Xiao <xiaopei01@kylinos.cn>
Reviewed-by: default avatarSumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent e4a718a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment