Thread (25 messages) 25 messages, 4 authors, 2021-06-15

Re: [PATCH v4 1/8] optee: Fix memory leak when failing to register shm pages

From: Jens Wiklander <jens.wiklander@linaro.org>
Date: 2021-06-11 09:05:36
Also in: linux-mips, lkml, op-tee

On Thu, Jun 10, 2021 at 11:09 PM Tyler Hicks
[off-list ref] wrote:
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")
Signed-off-by: Tyler Hicks <redacted>
---
 drivers/tee/optee/shm_pool.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
Looks good.

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help