Commit 3f3d5418 authored by Pei Xiao's avatar Pei Xiao Committed by Greg Kroah-Hartman
Browse files

tee: fix memory leak in tee_dyn_shm_alloc_helper



[ Upstream commit 50a74d00 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 963fca19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment