diff options
author | Tyler Hicks <tyhicks@linux.microsoft.com> | 2021-06-14 17:33:10 -0500 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2021-07-21 07:39:33 +0200 |
commit | ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 (patch) | |
tree | 10884b92a2490ef91de28f8fdb39b60dcc47d5e0 /drivers/tee/optee/core.c | |
parent | 2734d6c1b1a089fb593ef6a23d4b70903526fe0c (diff) | |
download | linux-ec185dd3ab257dc2a60953fdf1b6622f524cc5b7.tar.bz2 |
optee: Fix memory leak when failing to register shm pages
Free the previously allocated pages when we encounter an error condition
while attempting to register the pages with the secure world.
Fixes: a249dd200d03 ("tee: optee: Fix dynamic shm pool allocations")
Fixes: 5a769f6ff439 ("optee: Fix multi page dynamic shm pool alloc")
Cc: stable@vger.kernel.org
Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee/core.c')
0 files changed, 0 insertions, 0 deletions